window.GraphiQL=function(e){function t(t){for(var n,i,o=t[0],a=t[1],s=0,u=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&u.push(r[i][0]),r[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(l&&l(t);u.length;)u.shift()()}var n={},r={0:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(){return Promise.resolve()},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonpGraphiQL=window.webpackJsonpGraphiQL||[],a=o.push.bind(o);o.push=t,o=o.slice();for(var s=0;s<o.length;s++)t(o[s]);var l=a;return i(i.s=23)}([function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(2)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.c=e.a=e.C=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}r(i,"_mergeNamespaces");var o={exports:{}};e.a=o,function(e,n){t.c,e.exports=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),i=/MSIE \d/.test(e),o=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),s=i||o||a,l=s&&(i?document.documentMode||6:+(a||o)[1]),u=!a&&/WebKit\//.test(e),c=u&&/Qt\/\d+\.\d+/.test(e),d=!a&&/Chrome\//.test(e),f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=g||/Mac/.test(t),E=/\bCrOS\b/.test(e),T=/win/i.test(t),w=f&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(f=!1,u=!0);var C=b&&(c||f&&(null==w||w<12.11)),x=n||s&&l>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}r(S,"classTest");var N,k=r((function(e,t){var n=e.className,r=S(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}}),"rmClass");function _(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return _(e).appendChild(t)}function I(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function L(e,t,n,r){var i=I(e,t,n,r);return i.setAttribute("role","presentation"),i}function A(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function D(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function M(e,t){var n=e.className;S(t).test(n)||(e.className+=(n?" ":"")+t)}function R(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!S(n[r]).test(t)&&(t+=" "+n[r]);return t}r(_,"removeChildren"),r(O,"removeChildrenAndAdd"),r(I,"elt"),r(L,"eltP"),N=document.createRange?r((function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}),"range"):r((function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r}),"range"),r(A,"contains"),r(D,"activeElt"),r(M,"addClass"),r(R,"joinClasses");var F=r((function(e){e.select()}),"selectInput");function P(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function j(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function V(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?F=r((function(e){e.selectionStart=0,e.selectionEnd=e.value.length}),"selectInput"):s&&(F=r((function(e){try{e.select()}catch(e){}}),"selectInput")),r(P,"bind"),r(j,"copyObj"),r(V,"countColumn");var U=r((function(){this.id=null,this.f=null,this.time=0,this.handler=P(this.onTimeout,this)}),"Delayed");function B(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}U.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},U.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)},r(B,"indexOf");var $={toString:function(){return"CodeMirror.Pass"}},q={scroll:!1},H={origin:"*mouse"},G={origin:"+move"};function W(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}r(W,"findColumn");var z=[""];function K(e){for(;z.length<=e;)z.push(Q(z)+" ");return z[e]}function Q(e){return e[e.length-1]}function Y(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function J(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function X(){}function Z(e,t){var n;return Object.create?n=Object.create(e):(X.prototype=e,n=new X),t&&j(t,n),n}r(K,"spaceStr"),r(Q,"lst"),r(Y,"map"),r(J,"insertSorted"),r(X,"nothing"),r(Z,"createObj");var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function te(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}r(te,"isWordCharBasic"),r(ne,"isWordChar"),r(re,"isEmpty");var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function ae(e,t,n){for(;(n<0?t>0:t<e.length)&&oe(e.charAt(t));)t+=n;return t}function se(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function le(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}r(oe,"isExtendingChar"),r(ae,"skipExtendingChars"),r(se,"findFirst"),r(le,"iterateBidiSections");var ue=null;function ce(e,t,n){var r;ue=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ue=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ue=i)}return null!=r?r:ue}r(ce,"getBidiPartAt");var de=function(){function e(e){return e<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}r(e,"charType");var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return r(s,"BidiSpan"),function(r,l){var u="ltr"==l?"L":"R";if(0==r.length||"ltr"==l&&!t.test(r))return!1;for(var c=r.length,d=[],f=0;f<c;++f)d.push(e(r.charCodeAt(f)));for(var p=0,h=u;p<c;++p){var m=d[p];"m"==m?d[p]=h:h=m}for(var g=0,v=u;g<c;++g){var y=d[g];"1"==y&&"r"==v?d[g]="n":i.test(y)&&(v=y,"r"==y&&(d[g]="R"))}for(var b=1,E=d[0];b<c-1;++b){var T=d[b];"+"==T&&"1"==E&&"1"==d[b+1]?d[b]="1":","!=T||E!=d[b+1]||"1"!=E&&"n"!=E||(d[b]=E),E=T}for(var w=0;w<c;++w){var C=d[w];if(","==C)d[w]="N";else if("%"==C){var x=void 0;for(x=w+1;x<c&&"%"==d[x];++x);for(var S=w&&"!"==d[w-1]||x<c&&"1"==d[x]?"1":"N",N=w;N<x;++N)d[N]=S;w=x-1}}for(var k=0,_=u;k<c;++k){var O=d[k];"L"==_&&"1"==O?d[k]="L":i.test(O)&&(_=O)}for(var I=0;I<c;++I)if(n.test(d[I])){var L=void 0;for(L=I+1;L<c&&n.test(d[L]);++L);for(var A="L"==(I?d[I-1]:u),D=A==("L"==(L<c?d[L]:u))?A?"L":"R":u,M=I;M<L;++M)d[M]=D;I=L-1}for(var R,F=[],P=0;P<c;)if(o.test(d[P])){var j=P;for(++P;P<c&&o.test(d[P]);++P);F.push(new s(0,j,P))}else{var V=P,U=F.length,B="rtl"==l?1:0;for(++P;P<c&&"L"!=d[P];++P);for(var $=V;$<P;)if(a.test(d[$])){V<$&&(F.splice(U,0,new s(1,V,$)),U+=B);var q=$;for(++$;$<P&&a.test(d[$]);++$);F.splice(U,0,new s(2,q,$)),U+=B,V=$}else++$;V<P&&F.splice(U,0,new s(1,V,P))}return"ltr"==l&&(1==F[0].level&&(R=r.match(/^\s+/))&&(F[0].from=R[0].length,F.unshift(new s(0,0,R[0].length))),1==Q(F).level&&(R=r.match(/\s+$/))&&(Q(F).to-=R[0].length,F.push(new s(0,c-R[0].length,c)))),"rtl"==l?F.reverse():F}}();function fe(e,t){var n=e.order;return null==n&&(n=e.order=de(e.text,t)),n}r(fe,"getOrder");var pe=[],he=r((function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||pe).concat(n)}}),"on");function me(e,t){return e._handlers&&e._handlers[t]||pe}function ge(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=B(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ve(e,t){var n=me(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function ye(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ve(e,n||t.type,e,t),xe(t)||t.codemirrorIgnore}function be(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==B(n,t[r])&&n.push(t[r])}function Ee(e,t){return me(e,t).length>0}function Te(e){e.prototype.on=function(e,t){he(this,e,t)},e.prototype.off=function(e,t){ge(this,e,t)}}function we(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ce(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function xe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Se(e){we(e),Ce(e)}function Ne(e){return e.target||e.srcElement}function ke(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}r(me,"getHandlers"),r(ge,"off"),r(ve,"signal"),r(ye,"signalDOMEvent"),r(be,"signalCursorActivity"),r(Ee,"hasHandler"),r(Te,"eventMixin"),r(we,"e_preventDefault"),r(Ce,"e_stopPropagation"),r(xe,"e_defaultPrevented"),r(Se,"e_stop"),r(Ne,"e_target"),r(ke,"e_button");var _e,Oe,Ie=function(){if(s&&l<9)return!1;var e=I("div");return"draggable"in e||"dragDrop"in e}();function Le(e){if(null==_e){var t=I("span","​");O(e,I("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(_e=t.offsetWidth<=1&&t.offsetHeight>2&&!(s&&l<8))}var n=_e?I("span","​"):I("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ae(e){if(null!=Oe)return Oe;var t=O(e,document.createTextNode("AخA")),n=N(t,0,1).getBoundingClientRect(),r=N(t,1,2).getBoundingClientRect();return _(e),!(!n||n.left==n.right)&&(Oe=r.right-n.right<3)}r(Le,"zeroWidthElement"),r(Ae,"hasBadBidiRects");var De,Me=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Re=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Fe="oncopy"in(De=I("div"))||(De.setAttribute("oncopy","return;"),"function"==typeof De.oncopy),Pe=null;function je(e){if(null!=Pe)return Pe;var t=O(e,I("span","x")),n=t.getBoundingClientRect(),r=N(t,0,1).getBoundingClientRect();return Pe=Math.abs(n.left-r.left)>1}r(je,"hasBadZoomedRects");var Ve={},Ue={};function Be(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ve[e]=t}function $e(e,t){Ue[e]=t}function qe(e){if("string"==typeof e&&Ue.hasOwnProperty(e))e=Ue[e];else if(e&&"string"==typeof e.name&&Ue.hasOwnProperty(e.name)){var t=Ue[e.name];"string"==typeof t&&(t={name:t}),(e=Z(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return qe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return qe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function He(e,t){t=qe(t);var n=Ve[t.name];if(!n)return He(e,"text/plain");var r=n(e,t);if(Ge.hasOwnProperty(t.name)){var i=Ge[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}r(Be,"defineMode"),r($e,"defineMIME"),r(qe,"resolveMode"),r(He,"getMode");var Ge={};function We(e,t){j(t,Ge.hasOwnProperty(e)?Ge[e]:Ge[e]={})}function ze(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ke(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Qe(e,t,n){return!e.startState||e.startState(t,n)}r(We,"extendMode"),r(ze,"copyState"),r(Ke,"innerMode"),r(Qe,"startState");var Ye=r((function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n}),"StringStream");function Je(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Xe(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Ze(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function et(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function tt(e){if(null==e.parent)return null;for(var t=e.parent,n=B(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function nt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function rt(e,t){return t>=e.first&&t<e.first+e.size}function it(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ot(e,t,n){if(void 0===n&&(n=null),!(this instanceof ot))return new ot(e,t,n);this.line=e,this.ch=t,this.sticky=n}function at(e,t){return e.line-t.line||e.ch-t.ch}function st(e,t){return e.sticky==t.sticky&&0==at(e,t)}function lt(e){return ot(e.line,e.ch)}function ut(e,t){return at(e,t)<0?t:e}function ct(e,t){return at(e,t)<0?e:t}function dt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ft(e,t){if(t.line<e.first)return ot(e.first,0);var n=e.first+e.size-1;return t.line>n?ot(n,Je(e,n).text.length):pt(t,Je(e,t.line).text.length)}function pt(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}function ht(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ft(e,t[r]);return n}Ye.prototype.eol=function(){return this.pos>=this.string.length},Ye.prototype.sol=function(){return this.pos==this.lineStart},Ye.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ye.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ye.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ye.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ye.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ye.prototype.skipToEnd=function(){this.pos=this.string.length},Ye.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ye.prototype.backUp=function(e){this.pos-=e},Ye.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.match=function(e,t,n){if("string"!=typeof e){var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var o=r((function(e){return n?e.toLowerCase():e}),"cased");if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},Ye.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ye.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ye.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ye.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)},r(Je,"getLine"),r(Xe,"getBetween"),r(Ze,"getLines"),r(et,"updateLineHeight"),r(tt,"lineNo"),r(nt,"lineAtHeight"),r(rt,"isLine"),r(it,"lineNumberFor"),r(ot,"Pos"),r(at,"cmp"),r(st,"equalCursorPos"),r(lt,"copyPos"),r(ut,"maxPos"),r(ct,"minPos"),r(dt,"clipLine"),r(ft,"clipPos"),r(pt,"clipToLen"),r(ht,"clipPosArray");var mt=r((function(e,t){this.state=e,this.lookAhead=t}),"SavedContext"),gt=r((function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1}),"Context");function vt(e,t,n,i){var o=[e.state.modeGen],a={};Nt(e,t.text,e.doc.mode,n,(function(e,t){return o.push(e,t)}),a,i);for(var s=n.state,l=r((function(r){n.baseTokens=o;var i=e.state.overlays[r],l=1,u=0;n.state=!0,Nt(e,t.text,i.mode,n,(function(e,t){for(var n=l;u<e;){var r=o[l];r>e&&o.splice(l,1,e,o[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(i.opaque)o.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var a=o[n+1];o[n+1]=(a?a+" ":"")+"overlay "+t}}),a),n.state=s,n.baseTokens=null,n.baseTokenPos=1}),"loop"),u=0;u<e.state.overlays.length;++u)l(u);return{styles:o,classes:a.bgClass||a.textClass?a:null}}function yt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=bt(e,tt(t)),i=t.text.length>e.options.maxHighlightLength&&ze(e.doc.mode,r.state),o=vt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function bt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new gt(r,!0,t);var o=kt(e,t,n),a=o>r.first&&Je(r,o-1).stateAfter,s=a?gt.fromSaved(r,a,o):new gt(r,Qe(r.mode),o);return r.iter(o,t,(function(n){Et(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function Et(e,t,n,r){var i=e.doc.mode,o=new Ye(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Tt(i,n.state);!o.eol();)wt(i,o,n.state),o.start=o.pos}function Tt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ke(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function wt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ke(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}gt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},gt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},gt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gt.fromSaved=function(e,t,n){return t instanceof mt?new gt(e,ze(e.mode,t.state),n,t.lookAhead):new gt(e,ze(e.mode,t),n)},gt.prototype.save=function(e){var t=!1!==e?ze(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new mt(t,this.maxLookAhead):t},r(vt,"highlightLine"),r(yt,"getLineStyles"),r(bt,"getContextBefore"),r(Et,"processLine"),r(Tt,"callBlankLine"),r(wt,"readToken");var Ct=r((function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n}),"Token");function xt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Je(a,(t=ft(a,t)).line),u=bt(e,t.line,n),c=new Ye(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=wt(s,c,u.state),r&&o.push(new Ct(c,i,ze(a.mode,u.state)));return r?o:new Ct(c,i,u.state)}function St(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Nt(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,u=0,c=null,d=new Ye(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];for(""==t&&St(Tt(n,r.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&Et(e,t,r,d.pos),d.pos=t.length,l=null):l=St(wt(n,d,r.state,f),o),f){var p=f[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||c!=l){for(;u<d.start;)i(u=Math.min(d.start,u+5e3),c);c=l}d.start=d.pos}for(;u<d.pos;){var h=Math.min(d.pos,u+5e3);i(h,c),u=h}}function kt(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Je(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof mt?u.lookAhead:0)<=o.modeFrontier))return s;var c=V(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}function _t(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Je(e,r).stateAfter;if(i&&(!(i instanceof mt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}r(xt,"takeToken"),r(St,"extractLineClasses"),r(Nt,"runMode"),r(kt,"findStartLine"),r(_t,"retreatFrontier");var Ot=!1,It=!1;function Lt(){Ot=!0}function At(){It=!0}function Dt(e,t,n){this.marker=e,this.from=t,this.to=n}function Mt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Rt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Ft(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Pt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Dt(a,o.from,s?null:o.to))}}return r}function jt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Dt(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}function Vt(e,t){if(t.full)return null;var n=rt(e,t.from.line)&&Je(e,t.from.line).markedSpans,r=rt(e,t.to.line)&&Je(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==at(t.from,t.to),s=Pt(n,i,a),l=jt(r,o,a),u=1==t.text.length,c=Q(t.text).length+(u?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(null==f.to){var p=Mt(l,f.marker);p?u&&(f.to=null==p.to?null:p.to+c):f.to=i}}if(l)for(var h=0;h<l.length;++h){var m=l[h];null!=m.to&&(m.to+=c),null==m.from?Mt(s,m.marker)||(m.from=c,u&&(s||(s=[])).push(m)):(m.from+=c,u&&(s||(s=[])).push(m))}s&&(s=Ut(s)),l&&l!=s&&(l=Ut(l));var g=[s];if(!u){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new Dt(s[b].marker,null,null));for(var E=0;E<y;++E)g.push(v);g.push(l)}return g}function Ut(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Bt(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=B(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var u=i[l];if(!(at(u.to,s.from)<0||at(u.from,s.to)>0)){var c=[l,1],d=at(u.from,s.from),f=at(u.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}function $t(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function qt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Ht(e){return e.inclusiveLeft?-1:0}function Gt(e){return e.inclusiveRight?1:0}function Wt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=at(r.from,i.from)||Ht(e)-Ht(t);if(o)return-o;var a=at(r.to,i.to)||Gt(e)-Gt(t);return a||t.id-e.id}function zt(e,t){var n,r=It&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Wt(n,i.marker)<0)&&(n=i.marker);return n}function Kt(e){return zt(e,!0)}function Qt(e){return zt(e,!1)}function Yt(e,t){var n,r=It&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Wt(n,o.marker)<0)&&(n=o.marker)}return n}function Jt(e,t,n,r,i){var o=Je(e,t),a=It&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=at(u.from,n)||Ht(l.marker)-Ht(i),d=at(u.to,r)||Gt(l.marker)-Gt(i);if(!(c>=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?at(u.to,n)>=0:at(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?at(u.from,r)<=0:at(u.from,r)<0)))return!0}}}function Xt(e){for(var t;t=Kt(e);)e=t.find(-1,!0).line;return e}function Zt(e){for(var t;t=Qt(e);)e=t.find(1,!0).line;return e}function en(e){for(var t,n;t=Qt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function tn(e,t){var n=Je(e,t),r=Xt(n);return n==r?t:tt(r)}function nn(e,t){if(t>e.lastLine())return t;var n,r=Je(e,t);if(!rn(e,r))return t;for(;n=Qt(r);)r=n.find(1,!0).line;return tt(r)+1}function rn(e,t){var n=It&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&on(e,t,r))return!0}}function on(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return on(e,r.line,Mt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&on(e,t,i))return!0}function an(e){for(var t=0,n=(e=Xt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function sn(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Kt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Qt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function ln(e){var t=e.display,n=e.doc;t.maxLine=Je(n,n.first),t.maxLineLength=sn(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=sn(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}r(Lt,"seeReadOnlySpans"),r(At,"seeCollapsedSpans"),r(Dt,"MarkedSpan"),r(Mt,"getMarkedSpanFor"),r(Rt,"removeMarkedSpan"),r(Ft,"addMarkedSpan"),r(Pt,"markedSpansBefore"),r(jt,"markedSpansAfter"),r(Vt,"stretchSpansOverChange"),r(Ut,"clearEmptySpans"),r(Bt,"removeReadOnlyRanges"),r($t,"detachMarkedSpans"),r(qt,"attachMarkedSpans"),r(Ht,"extraLeft"),r(Gt,"extraRight"),r(Wt,"compareCollapsedMarkers"),r(zt,"collapsedSpanAtSide"),r(Kt,"collapsedSpanAtStart"),r(Qt,"collapsedSpanAtEnd"),r(Yt,"collapsedSpanAround"),r(Jt,"conflictingCollapsedRange"),r(Xt,"visualLine"),r(Zt,"visualLineEnd"),r(en,"visualLineContinued"),r(tn,"visualLineNo"),r(nn,"visualLineEndNo"),r(rn,"lineIsHidden"),r(on,"lineIsHiddenInner"),r(an,"heightAtLine"),r(sn,"lineLength"),r(ln,"findMaxLine");var un=r((function(e,t,n){this.text=e,qt(this,t),this.height=n?n(this):1}),"Line");function cn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),$t(e),qt(e,n);var i=r?r(e):1;i!=e.height&&et(e,i)}function dn(e){e.parent=null,$t(e)}un.prototype.lineNo=function(){return tt(this)},Te(un),r(cn,"updateLine"),r(dn,"cleanUpLine");var fn={},pn={};function hn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?pn:fn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function mn(e,t){var n=L("span",null,null,u?"padding-right: .1px":null),r={pre:L("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=vn,Ae(e.display.measure)&&(a=fe(o,e.doc.direction))&&(r.addToken=bn(r.addToken,a)),r.map=[],Tn(o,r,yt(e,o,t!=e.display.externalMeasured&&tt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=R(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=R(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Le(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(u){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ve(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=R(r.pre.className,r.textClass||"")),r}function gn(e){var t=I("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function vn(e,t,n,r,i,o,a){if(t){var u,c=e.splitSpaces?yn(t,e.trailingSpace):t,d=e.cm.state.specialChars,f=!1;if(d.test(t)){u=document.createDocumentFragment();for(var p=0;;){d.lastIndex=p;var h=d.exec(t),m=h?h.index-p:t.length-p;if(m){var g=document.createTextNode(c.slice(p,p+m));s&&l<9?u.appendChild(I("span",[g])):u.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var v=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=u.appendChild(I("span",K(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=u.appendChild(I("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),s&&l<9?u.appendChild(I("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),s&&l<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||f||o||a){var E=n||"";r&&(E+=r),i&&(E+=i);var T=I("span",[u],E,o);if(a)for(var w in a)a.hasOwnProperty(w)&&"style"!=w&&"class"!=w&&T.setAttribute(w,a[w]);return e.content.appendChild(T)}e.content.appendChild(u)}}function yn(e,t){if(e.length>1&&!/  /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function bn(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var d=void 0,f=0;f<t.length&&!((d=t[f]).to>u&&d.from<=u);f++);if(d.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-u),i,o,null,s,l),o=null,r=r.slice(d.to-u),u=d.to}}}function En(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Tn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,d,f,p=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=u=c=s="",f=null,d=null,v=1/0;for(var y=[],b=void 0,E=0;E<r.length;++E){var T=r[E],w=T.marker;if("bookmark"==w.type&&T.from==h&&w.widgetNode)y.push(w);else if(T.from<=h&&(null==T.to||T.to>h||w.collapsed&&T.to==h&&T.from==h)){if(null!=T.to&&T.to!=h&&v>T.to&&(v=T.to,u=""),w.className&&(l+=" "+w.className),w.css&&(s=(s?s+";":"")+w.css),w.startStyle&&T.from==h&&(c+=" "+w.startStyle),w.endStyle&&T.to==v&&(b||(b=[])).push(w.endStyle,T.to),w.title&&((f||(f={})).title=w.title),w.attributes)for(var C in w.attributes)(f||(f={}))[C]=w.attributes[C];w.collapsed&&(!d||Wt(d.marker,w)<0)&&(d=T)}else T.from>h&&v>T.from&&(v=T.from)}if(b)for(var x=0;x<b.length;x+=2)b[x+1]==v&&(u+=" "+b[x]);if(!d||d.from==h)for(var S=0;S<y.length;++S)En(t,0,y[S]);if(d&&(d.from||0)==h){if(En(t,(null==d.to?p+1:d.to)-h,d.marker,null==d.from),null==d.to)return;d.to==h&&(d=!1)}}if(h>=p)break;for(var N=Math.min(p,v);;){if(g){var k=h+g.length;if(!d){var _=k>N?g.slice(0,N-h):g;t.addToken(t,_,a?a+l:l,c,h+_.length==v?u:"",s,f)}if(k>=N){g=g.slice(N-h),h=N;break}h=k,c=""}g=i.slice(o,o=n[m++]),a=hn(n[m++],t.cm.options)}}else for(var O=1;O<n.length;O+=2)t.addToken(t,i.slice(o,o=n[O]),hn(n[O+1],t.cm.options))}function wn(e,t,n){this.line=t,this.rest=en(t),this.size=this.rest?tt(Q(this.rest))-n+1:1,this.node=this.text=null,this.hidden=rn(e,t)}function Cn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new wn(e.doc,Je(e.doc,o),o);r=o+a.size,i.push(a)}return i}r(hn,"interpretTokenStyle"),r(mn,"buildLineContent"),r(gn,"defaultSpecialCharPlaceholder"),r(vn,"buildToken"),r(yn,"splitSpaces"),r(bn,"buildTokenBadBidi"),r(En,"buildCollapsedSpan"),r(Tn,"insertLineContent"),r(wn,"LineView"),r(Cn,"buildViewArray");var xn=null;function Sn(e){xn?xn.ops.push(e):e.ownsGroup=xn={ops:[e],delayedCallbacks:[]}}function Nn(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function kn(e,t){var n=e.ownsGroup;if(n)try{Nn(n)}finally{xn=null,t(n)}}r(Sn,"pushOperation"),r(Nn,"fireCallbacksForOps"),r(kn,"finishOperation");var _n=null;function On(e,t){var n=me(e,t);if(n.length){var i,o=Array.prototype.slice.call(arguments,2);xn?i=xn.delayedCallbacks:_n?i=_n:(i=_n=[],setTimeout(In,0));for(var a=r((function(e){i.push((function(){return n[e].apply(null,o)}))}),"loop"),s=0;s<n.length;++s)a(s)}}function In(){var e=_n;_n=null;for(var t=0;t<e.length;++t)e[t]()}function Ln(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?Rn(e,t):"gutter"==o?Pn(e,t,n,r):"class"==o?Fn(e,t):"widget"==o&&jn(e,t,r)}t.changes=null}function An(e){return e.node==e.text&&(e.node=I("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),s&&l<8&&(e.node.style.zIndex=2)),e.node}function Dn(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=An(t);t.background=r.insertBefore(I("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Mn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):mn(e,t)}function Rn(e,t){var n=t.text.className,r=Mn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Fn(e,t)):n&&(t.text.className=n)}function Fn(e,t){Dn(e,t),t.line.wrapClass?An(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Pn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=An(t);t.gutterBackground=I("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=An(t),s=t.gutter=I("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(I("div",it(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var u=e.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&s.appendChild(I("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function jn(e,t,n){t.alignable&&(t.alignable=null);for(var r=S("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);Un(e,t,n)}function Vn(e,t,n,r){var i=Mn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Fn(e,t),Pn(e,t,n,r),Un(e,t,r),t.node}function Un(e,t,n){if(Bn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Bn(e,t.rest[r],t,n,!1)}function Bn(e,t,n,r,i){if(t.widgets)for(var o=An(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],u=I("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),$n(l,u,n,r),e.display.input.setUneditable(u),i&&l.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),On(l,"redraw")}}function $n(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function qn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!A(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),O(t.display.measure,I("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Hn(e,t){for(var n=Ne(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Gn(e){return e.lineSpace.offsetTop}function Wn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function zn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=O(e.measure,I("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Kn(e){return 50-e.display.nativeBarWidth}function Qn(e){return e.display.scroller.clientWidth-Kn(e)-e.display.barWidth}function Yn(e){return e.display.scroller.clientHeight-Kn(e)-e.display.barHeight}function Jn(e,t,n){var r=e.options.lineWrapping,i=r&&Qn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Xn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(tt(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Zn(e,t){var n=tt(t=Xt(t)),r=e.display.externalMeasured=new wn(e.doc,t,n);r.lineN=n;var i=r.built=mn(e,r);return r.text=i.pre,O(e.display.lineMeasure,i.pre),r}function er(e,t,n,r){return rr(e,nr(e,t),n,r)}function tr(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Fr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function nr(e,t){var n=tt(t),r=tr(e,n);r&&!r.text?r=null:r&&r.changes&&(Ln(e,r,n,Lr(e)),e.curOp.forceUpdate=!0),r||(r=Zn(e,t));var i=Xn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function rr(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Jn(e,t.view,t.rect),t.hasHeights=!0),(o=lr(e,t,n,r)).bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}r(On,"signalLater"),r(In,"fireOrphanDelayed"),r(Ln,"updateLineForChanges"),r(An,"ensureLineWrapped"),r(Dn,"updateLineBackground"),r(Mn,"getLineContent"),r(Rn,"updateLineText"),r(Fn,"updateLineClasses"),r(Pn,"updateLineGutter"),r(jn,"updateLineWidgets"),r(Vn,"buildLineElement"),r(Un,"insertLineWidgets"),r(Bn,"insertLineWidgetsFor"),r($n,"positionLineWidget"),r(qn,"widgetHeight"),r(Hn,"eventInWidget"),r(Gn,"paddingTop"),r(Wn,"paddingVert"),r(zn,"paddingH"),r(Kn,"scrollGap"),r(Qn,"displayWidth"),r(Yn,"displayHeight"),r(Jn,"ensureLineHeights"),r(Xn,"mapFromLineView"),r(Zn,"updateExternalMeasurement"),r(er,"measureChar"),r(tr,"findViewForLine"),r(nr,"prepareMeasureForLine"),r(rr,"measureCharPrepared");var ir,or={left:0,right:0,top:0,bottom:0};function ar(e,t,n){for(var r,i,o,a,s,l,u=0;u<e.length;u+=3)if(s=e[u],l=e[u+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(u==e.length-3||t==l&&e[u+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function sr(e,t){var n=or;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function lr(e,t,n,r){var i,o=ar(t.map,n,r),a=o.node,u=o.start,c=o.end,d=o.collapse;if(3==a.nodeType){for(var f=0;f<4;f++){for(;u&&oe(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&oe(t.line.text.charAt(o.coverStart+c));)++c;if((i=s&&l<9&&0==u&&c==o.coverEnd-o.coverStart?a.parentNode.getBoundingClientRect():sr(N(a,u,c).getClientRects(),r)).left||i.right||0==u)break;c=u,u-=1,d="right"}s&&l<11&&(i=ur(e.display.measure,i))}else{var p;u>0&&(d=r="right"),i=e.options.lineWrapping&&(p=a.getClientRects()).length>1?p["right"==r?p.length-1:0]:a.getBoundingClientRect()}if(s&&l<9&&!u&&(!i||!i.left&&!i.right)){var h=a.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+Ir(e.display),top:h.top,bottom:h.bottom}:or}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var E=b?y[b-1]:0,T=y[b],w={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:E,bottom:T};return i.left||i.right||(w.bogus=!0),e.options.singleCursorHeightPerLine||(w.rtop=m,w.rbottom=g),w}function ur(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!je(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function cr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function dr(e){e.display.externalMeasure=null,_(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)cr(e.display.view[t])}function fr(e){dr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function pr(){return d&&v?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function hr(){return d&&v?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function mr(e){var t=Xt(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=qn(t[r]));return n}function gr(e,t,n,r,i){if(!i){var o=mr(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=an(t);if("local"==r?a+=Gn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:hr());var l=s.left+("window"==r?0:pr());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function vr(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=pr(),i-=hr();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function yr(e,t,n,r,i){return r||(r=Je(e.doc,t.line)),gr(e,r,er(e,r,t.ch,i),n)}function br(e,t,n,i,o,a){function s(t,r){var s=rr(e,o,t,r?"right":"left",a);return r?s.left=s.right:s.right=s.left,gr(e,i,s,n)}i=i||Je(e.doc,t.line),o||(o=nr(e,i)),r(s,"get");var l=fe(i,e.doc.direction),u=t.ch,c=t.sticky;if(u>=i.text.length?(u=i.text.length,c="before"):u<=0&&(u=0,c="after"),!l)return s("before"==c?u-1:u,"before"==c);function d(e,t,n){return s(n?e-1:e,1==l[t].level!=n)}r(d,"getBidi");var f=ce(l,u,c),p=ue,h=d(u,f,"before"==c);return null!=p&&(h.other=d(u,p,"before"!=c)),h}function Er(e,t){var n=0;t=ft(e.doc,t),e.options.lineWrapping||(n=Ir(e.display)*t.ch);var r=Je(e.doc,t.line),i=an(r)+Gn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Tr(e,t,n,r,i){var o=ot(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function wr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Tr(r.first,0,null,-1,-1);var i=nt(r,n),o=r.first+r.size-1;if(i>o)return Tr(r.first+r.size-1,Je(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Je(r,i);;){var s=Nr(e,a,i,t,n),l=Yt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=Je(r,i=u.line)}}function Cr(e,t,n,r){r-=mr(t);var i=t.text.length,o=se((function(t){return rr(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=se((function(t){return rr(e,n,t).top>r}),o,i)}}function xr(e,t,n,r){return n||(n=nr(e,t)),Cr(e,t,n,gr(e,t,rr(e,n,r),"line").top)}function Sr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Nr(e,t,n,r,i){i-=an(t);var o=nr(e,t),a=mr(t),s=0,l=t.text.length,u=!0,c=fe(t,e.doc.direction);if(c){var d=(e.options.lineWrapping?_r:kr)(e,t,n,o,c,r,i);s=(u=1!=d.level)?d.from:d.to-1,l=u?d.to:d.from-1}var f,p,h=null,m=null,g=se((function(t){var n=rr(e,o,t);return n.top+=a,n.bottom+=a,!!Sr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,l),v=!1;if(m){var y=r-m.left<m.right-r,b=y==u;g=h+(b?0:1),p=b?"after":"before",f=y?m.left:m.right}else{u||g!=l&&g!=s||g++,p=0==g?"after":g==t.text.length?"before":rr(e,o,g-(u?1:0)).bottom+a<=i==u?"after":"before";var E=br(e,ot(n,g,p),"line",t,o);f=E.left,v=i<E.top?-1:i>=E.bottom?1:0}return Tr(n,g=ae(t.text,g,1),p,v,r-f)}function kr(e,t,n,r,i,o,a){var s=se((function(s){var l=i[s],u=1!=l.level;return Sr(br(e,ot(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=br(e,ot(n,u?l.from:l.to,u?"after":"before"),"line",t,r);Sr(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function _r(e,t,n,r,i,o,a){var s=Cr(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,d=null,f=0;f<i.length;f++){var p=i[f];if(!(p.from>=u||p.to<=l)){var h=rr(e,r,1!=p.level?Math.min(u,p.to)-1:Math.max(l,p.from)).right,m=h<o?o-h+1e9:h-o;(!c||d>m)&&(c=p,d=m)}}return c||(c=i[i.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function Or(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ir){ir=I("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ir.appendChild(document.createTextNode("x")),ir.appendChild(I("br"));ir.appendChild(document.createTextNode("x"))}O(e.measure,ir);var n=ir.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),_(e.measure),n||1}function Ir(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=I("span","xxxxxxxxxx"),n=I("pre",[t],"CodeMirror-line-like");O(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Lr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Ar(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Dr(e){var t=Or(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Ir(e.display)-3);return function(i){if(rn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Mr(e){var t=e.doc,n=Dr(e);t.iter((function(e){var t=n(e);t!=e.height&&et(e,t)}))}function Rr(e,t,n,r){var i=e.display;if(!n&&"true"==Ne(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,u=wr(e,o,a);if(r&&u.xRel>0&&(l=Je(e.doc,u.line).text).length==u.ch){var c=V(l,l.length,e.options.tabSize)-l.length;u=ot(u.line,Math.max(0,Math.round((o-zn(e.display).left)/Ir(e.display))-c))}return u}function Fr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function Pr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)It&&tn(e.doc,t)<i.viewTo&&Vr(e);else if(n<=i.viewFrom)It&&nn(e.doc,n+r)>i.viewFrom?Vr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Vr(e);else if(t<=i.viewFrom){var o=Ur(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Vr(e)}else if(n>=i.viewTo){var a=Ur(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Vr(e)}else{var s=Ur(e,t,t,-1),l=Ur(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(Cn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Vr(e)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(i.externalMeasured=null))}function jr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Fr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==B(a,n)&&a.push(n)}}}function Vr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ur(e,t,n,r){var i,o=Fr(e,t),a=e.display.view;if(!It||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;tn(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Br(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Cn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Cn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Fr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(Cn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Fr(e,n)))),r.viewTo=n}function $r(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function qr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Hr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var u=l.empty();if(a){var c=a(e,l);c&&Gr(e,c,i)}else(u||e.options.showCursorWhenSelecting)&&Gr(e,l.head,i);u||zr(e,l,o)}}return r}function Gr(e,t,n){var r=br(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(I("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=yr(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(I("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Wr(e,t){return e.top-t.top||e.left-t.left}function zr(e,t,n){var i=e.display,o=e.doc,a=document.createDocumentFragment(),s=zn(e.display),l=s.left,u=Math.max(i.sizerWidth,Qn(e)-i.sizer.offsetLeft)-s.right,c="ltr"==o.direction;function d(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),a.appendChild(I("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n                             top: "+t+"px; width: "+(null==n?u-e:n)+"px;\n                             height: "+(r-t)+"px"))}function f(t,n,i){var a,s,f=Je(o,t),p=f.text.length;function h(n,r){return yr(e,ot(t,n),"div",f,r)}function m(t,n,r){var i=xr(e,f,null,t),o="ltr"==n==("after"==r)?"left":"right";return h("after"==r?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1),o)[o]}r(h,"coords"),r(m,"wrapX");var g=fe(f,o.direction);return le(g,n||0,null==i?p:i,(function(e,t,r,o){var f="ltr"==r,v=h(e,f?"left":"right"),y=h(t-1,f?"right":"left"),b=null==n&&0==e,E=null==i&&t==p,T=0==o,w=!g||o==g.length-1;if(y.top-v.top<=3){var C=(c?E:b)&&w,x=(c?b:E)&&T?l:(f?v:y).left,S=C?u:(f?y:v).right;d(x,v.top,S-x,v.bottom)}else{var N,k,_,O;f?(N=c&&b&&T?l:v.left,k=c?u:m(e,r,"before"),_=c?l:m(t,r,"after"),O=c&&E&&w?u:y.right):(N=c?m(e,r,"before"):l,k=!c&&b&&T?u:v.right,_=!c&&E&&w?l:y.left,O=c?m(t,r,"after"):u),d(N,v.top,k-N,v.bottom),v.bottom<y.top&&d(l,v.bottom,null,y.top),d(_,y.top,O-_,y.bottom)}(!a||Wr(v,a)<0)&&(a=v),Wr(y,a)<0&&(a=y),(!s||Wr(v,s)<0)&&(s=v),Wr(y,s)<0&&(s=y)})),{start:a,end:s}}r(d,"add"),r(f,"drawForLine");var p=t.from(),h=t.to();if(p.line==h.line)f(p.line,p.ch,h.ch);else{var m=Je(o,p.line),g=Je(o,h.line),v=Xt(m)==Xt(g),y=f(p.line,p.ch,v?m.text.length+1:null).end,b=f(h.line,v?0:null,h.ch).start;v&&(y.top<b.top-2?(d(y.right,y.top,null,y.bottom),d(l,b.top,b.left,b.bottom)):d(y.right,y.top,b.left-y.right,y.bottom)),y.bottom<b.top&&d(l,y.bottom,null,b.top)}n.appendChild(a)}function Kr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||Xr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Qr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Jr(e))}function Yr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Xr(e))}),100)}function Jr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ve(e,"focus",e,t),e.state.focused=!0,M(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),u&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Kr(e))}function Xr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,t),e.state.focused=!1,k(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Zr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,a=0;a<t.view.length;a++){var u=t.view[a],c=e.options.lineWrapping,d=void 0,f=0;if(!u.hidden){if(i+=u.line.height,s&&l<8){var p=u.node.offsetTop+u.node.offsetHeight;d=p-n,n=p}else{var h=u.node.getBoundingClientRect();d=h.bottom-h.top,!c&&u.text.firstChild&&(f=u.text.firstChild.getBoundingClientRect().right-h.left-1)}var m=u.line.height-d;if((m>.005||m<-.005)&&(i<r&&(o-=m),et(u.line,d),ei(u.line),u.rest))for(var g=0;g<u.rest.length;g++)ei(u.rest[g]);if(f>e.display.sizerWidth){var v=Math.ceil(f/Ir(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ei(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ti(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Gn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=nt(t,r),a=nt(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=nt(t,an(Je(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=nt(t,an(Je(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function ni(e,t){if(!ye(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var o=I("div","​",null,"position: absolute;\n                         top: "+(t.top-n.viewOffset-Gn(e.display))+"px;\n                         height: "+(t.bottom-t.top+Kn(e)+n.barHeight)+"px;\n                         left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ri(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?ot(t.line,t.ch+1,"before"):t,t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=br(e,t),l=n&&n!=t?br(e,n):s,u=oi(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=u.scrollTop&&(fi(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(hi(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}function ii(e,t){var n=oi(e,t);null!=n.scrollTop&&fi(e,n.scrollTop),null!=n.scrollLeft&&hi(e,n.scrollLeft)}function oi(e,t){var n=e.display,r=Or(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Yn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Wn(n),l=t.top<r,u=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,p=Qn(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left+d-(h?0:10)):t.right>p+f-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function ai(e,t){null!=t&&(ci(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function si(e){ci(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function li(e,t,n){null==t&&null==n||ci(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function ui(e,t){ci(e),e.curOp.scrollToPos=t}function ci(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,di(e,Er(e,t.from),Er(e,t.to),t.margin))}function di(e,t,n,r){var i=oi(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});li(e,i.scrollLeft,i.scrollTop)}function fi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||qi(e,{top:t}),pi(e,t,!0),n&&qi(e),Ri(e,100))}function pi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function hi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,zi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function mi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Wn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Kn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}r(ar,"nodeAndOffsetInLineMap"),r(sr,"getUsefulRect"),r(lr,"measureCharInner"),r(ur,"maybeUpdateRectForZooming"),r(cr,"clearLineMeasurementCacheFor"),r(dr,"clearLineMeasurementCache"),r(fr,"clearCaches"),r(pr,"pageScrollX"),r(hr,"pageScrollY"),r(mr,"widgetTopHeight"),r(gr,"intoCoordSystem"),r(vr,"fromCoordSystem"),r(yr,"charCoords"),r(br,"cursorCoords"),r(Er,"estimateCoords"),r(Tr,"PosWithInfo"),r(wr,"coordsChar"),r(Cr,"wrappedLineExtent"),r(xr,"wrappedLineExtentChar"),r(Sr,"boxIsAfter"),r(Nr,"coordsCharInner"),r(kr,"coordsBidiPart"),r(_r,"coordsBidiPartWrapped"),r(Or,"textHeight"),r(Ir,"charWidth"),r(Lr,"getDimensions"),r(Ar,"compensateForHScroll"),r(Dr,"estimateHeight"),r(Mr,"estimateLineHeights"),r(Rr,"posFromMouse"),r(Fr,"findViewIndex"),r(Pr,"regChange"),r(jr,"regLineChange"),r(Vr,"resetView"),r(Ur,"viewCuttingPoint"),r(Br,"adjustView"),r($r,"countDirtyView"),r(qr,"updateSelection"),r(Hr,"prepareSelection"),r(Gr,"drawSelectionCursor"),r(Wr,"cmpCoords"),r(zr,"drawSelectionRange"),r(Kr,"restartBlink"),r(Qr,"ensureFocus"),r(Yr,"delayBlurEvent"),r(Jr,"onFocus"),r(Xr,"onBlur"),r(Zr,"updateHeightsInViewport"),r(ei,"updateWidgetHeight"),r(ti,"visibleLines"),r(ni,"maybeScrollWindow"),r(ri,"scrollPosIntoView"),r(ii,"scrollIntoView"),r(oi,"calculateScrollPos"),r(ai,"addToScrollTop"),r(si,"ensureCursorVisible"),r(li,"scrollToCoords"),r(ui,"scrollToRange"),r(ci,"resolveScrollToPos"),r(di,"scrollToCoordsRange"),r(fi,"updateScrollTop"),r(pi,"setScrollTop"),r(hi,"setScrollLeft"),r(mi,"measureForScrollbars");var gi=r((function(e,t,n){this.cm=n;var r=this.vert=I("div",[I("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=I("div",[I("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),he(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),he(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,s&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}),"NativeScrollbars");gi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},gi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},gi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},gi.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new U,this.disableVert=new U},gi.prototype.enableZeroWidthBar=function(e,t,n){function i(){var r=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,i)}e.style.pointerEvents="auto",r(i,"maybeDisable"),t.set(1e3,i)},gi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var vi=r((function(){}),"NullScrollbars");function yi(e,t){t||(t=mi(e));var n=e.display.barWidth,r=e.display.barHeight;bi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Zr(e),bi(e,mi(e)),n=e.display.barWidth,r=e.display.barHeight}function bi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}vi.prototype.update=function(){return{bottom:0,right:0}},vi.prototype.setScrollLeft=function(){},vi.prototype.setScrollTop=function(){},vi.prototype.clear=function(){},r(yi,"updateScrollbars"),r(bi,"updateScrollbarsInner");var Ei={native:gi,null:vi};function Ti(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&k(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ei[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),he(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?hi(e,t):fi(e,t)}),e),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)}r(Ti,"initScrollbars");var wi=0;function Ci(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++wi,markArrays:null},Sn(e.curOp)}function xi(e){var t=e.curOp;t&&kn(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Si(e)}))}function Si(e){for(var t=e.ops,n=0;n<t.length;n++)Ni(t[n]);for(var r=0;r<t.length;r++)ki(t[r]);for(var i=0;i<t.length;i++)_i(t[i]);for(var o=0;o<t.length;o++)Oi(t[o]);for(var a=0;a<t.length;a++)Ii(t[a])}function Ni(e){var t=e.cm,n=t.display;ji(t),e.updateMaxLine&&ln(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Pi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ki(e){e.updatedDisplay=e.mustUpdate&&Bi(e.cm,e.update)}function _i(e){var t=e.cm,n=t.display;e.updatedDisplay&&Zr(t),e.barMeasure=mi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=er(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Kn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Qn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Oi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&hi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==D();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&yi(t,e.barMeasure),e.updatedDisplay&&Wi(t,e.barMeasure),e.selectionChanged&&Kr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Qr(e.cm)}function Ii(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&$i(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&pi(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&hi(t,e.scrollLeft,!0,!0),e.scrollToPos&&ni(t,ri(t,ft(r,e.scrollToPos.from),ft(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||ve(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&ve(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ve(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Li(e,t){if(e.curOp)return t();Ci(e);try{return t()}finally{xi(e)}}function Ai(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Ci(e);try{return t.apply(e,arguments)}finally{xi(e)}}}function Di(e){return function(){if(this.curOp)return e.apply(this,arguments);Ci(this);try{return e.apply(this,arguments)}finally{xi(this)}}}function Mi(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Ci(t);try{return e.apply(this,arguments)}finally{xi(t)}}}function Ri(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,P(Fi,e))}function Fi(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=bt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?ze(t.mode,r.state):null,l=vt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),f=0;!d&&f<a.length;++f)d=a[f]!=o.styles[f];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&Et(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Ri(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Li(e,(function(){for(var t=0;t<i.length;t++)jr(e,i[t],"text")}))}}r(Ci,"startOperation"),r(xi,"endOperation"),r(Si,"endOperations"),r(Ni,"endOperation_R1"),r(ki,"endOperation_W1"),r(_i,"endOperation_R2"),r(Oi,"endOperation_W2"),r(Ii,"endOperation_finish"),r(Li,"runInOp"),r(Ai,"operation"),r(Di,"methodOp"),r(Mi,"docMethodOp"),r(Ri,"startWorker"),r(Fi,"highlightWorker");var Pi=r((function(e,t,n){var r=e.display;this.viewport=t,this.visible=ti(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Qn(e),this.force=n,this.dims=Lr(e),this.events=[]}),"DisplayUpdate");function ji(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Kn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Kn(e)+"px",t.scrollbarsClipped=!0)}function Vi(e){if(e.hasFocus())return null;var t=D();if(!t||!A(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&A(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Ui(e){if(e&&e.activeElt&&e.activeElt!=D()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&A(document.body,e.anchorNode)&&A(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function Bi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Vr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==$r(e))return!1;Ki(e)&&(Vr(e),t.dims=Lr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),It&&(o=tn(e.doc,o),a=nn(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Br(e,o,a),n.viewOffset=an(Je(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=$r(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=Vi(e);return l>4&&(n.lineDiv.style.display="none"),Hi(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Ui(u),_(n.cursorDiv),_(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Ri(e,400)),n.updateLineNumbers=null,!0}function $i(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Qn(e))r&&(t.visible=ti(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Wn(e.display)-Yn(e),n.top)}),t.visible=ti(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Bi(e,t))break;Zr(e);var i=mi(e);qr(e),yi(e,i),Wi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function qi(e,t){var n=new Pi(e,t);if(Bi(e,n)){Zr(e),$i(e,n);var r=mi(e);qr(e),yi(e,r),Wi(e,r),n.finish()}}function Hi(e,t,n){var i=e.display,o=e.options.lineNumbers,a=i.lineDiv,s=a.firstChild;function l(t){var n=t.nextSibling;return u&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}r(l,"rm");for(var c=i.view,d=i.viewFrom,f=0;f<c.length;f++){var p=c[f];if(p.hidden);else if(p.node&&p.node.parentNode==a){for(;s!=p.node;)s=l(s);var h=o&&null!=t&&t<=d&&p.lineNumber;p.changes&&(B(p.changes,"gutter")>-1&&(h=!1),Ln(e,p,d,n)),h&&(_(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(it(e.options,d)))),s=p.node.nextSibling}else{var m=Vn(e,p,d,n);a.insertBefore(m,s)}d+=p.size}for(;s;)s=l(s)}function Gi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",On(e,"gutterChanged",e)}function Wi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Kn(e)+"px"}function zi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Ar(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Ki(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=it(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(I("div",[I("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Gi(e.display),!0}return!1}function Qi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Yi(e){var t=e.gutters,n=e.gutterSpecs;_(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(I("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Gi(e)}function Ji(e){Yi(e.display),Pr(e),zi(e)}function Xi(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=I("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=I("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=L("div",null,"CodeMirror-code"),o.selectionDiv=I("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=I("div",null,"CodeMirror-cursors"),o.measure=I("div",null,"CodeMirror-measure"),o.lineMeasure=I("div",null,"CodeMirror-measure"),o.lineSpace=L("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var a=L("div",[o.lineSpace],"CodeMirror-lines");o.mover=I("div",[a],null,"position: relative"),o.sizer=I("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=I("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=I("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=I("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=I("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),o.wrapper.setAttribute("translate","no"),s&&l<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),u||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Qi(i.gutters,i.lineNumbers),Yi(o),r.init(o)}Pi.prototype.signal=function(e,t){Ee(e,t)&&this.events.push(arguments)},Pi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ve.apply(null,this.events[e])},r(ji,"maybeClipScrollbars"),r(Vi,"selectionSnapshot"),r(Ui,"restoreSelection"),r(Bi,"updateDisplayIfNeeded"),r($i,"postUpdateDisplay"),r(qi,"updateDisplaySimple"),r(Hi,"patchDisplay"),r(Gi,"updateGutterSpace"),r(Wi,"setDocumentHeight"),r(zi,"alignHorizontally"),r(Ki,"maybeUpdateLineNumberWidth"),r(Qi,"getGutters"),r(Yi,"renderGutters"),r(Ji,"updateGutters"),r(Xi,"Display");var Zi=0,eo=null;function to(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function no(e){var t=to(e);return t.x*=eo,t.y*=eo,t}function ro(e,t){var r=to(t),i=r.x,o=r.y,a=eo;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,l=s.scroller,c=l.scrollWidth>l.clientWidth,d=l.scrollHeight>l.clientHeight;if(i&&c||o&&d){if(o&&b&&u)e:for(var p=t.target,h=s.view;p!=l;p=p.parentNode)for(var m=0;m<h.length;m++)if(h[m].node==p){e.display.currentWheelTarget=p;break e}if(i&&!n&&!f&&null!=a)return o&&d&&fi(e,Math.max(0,l.scrollTop+o*a)),hi(e,Math.max(0,l.scrollLeft+i*a)),(!o||o&&d)&&we(t),void(s.wheelStartX=null);if(o&&null!=a){var g=o*a,v=e.doc.scrollTop,y=v+s.wrapper.clientHeight;g<0?v=Math.max(0,v+g-50):y=Math.min(e.doc.height,y+g+50),qi(e,{top:v,bottom:y})}Zi<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=l.scrollLeft,s.wheelStartY=l.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout((function(){if(null!=s.wheelStartX){var e=l.scrollLeft-s.wheelStartX,t=l.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(eo=(eo*Zi+n)/(Zi+1),++Zi)}}),200)):(s.wheelDX+=i,s.wheelDY+=o))}}s?eo=-.53:n?eo=15:d?eo=-.7:p&&(eo=-1/3),r(to,"wheelEventDelta"),r(no,"wheelEventPixels"),r(ro,"onScrollWheel");var io=r((function(e,t){this.ranges=e,this.primIndex=t}),"Selection");io.prototype.primary=function(){return this.ranges[this.primIndex]},io.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!st(n.anchor,r.anchor)||!st(n.head,r.head))return!1}return!0},io.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new oo(lt(this.ranges[t].anchor),lt(this.ranges[t].head));return new io(e,this.primIndex)},io.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},io.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(at(t,r.from())>=0&&at(e,r.to())<=0)return n}return-1};var oo=r((function(e,t){this.anchor=e,this.head=t}),"Range");function ao(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return at(e.from(),t.from())})),n=B(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=at(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var u=ct(s.from(),a.from()),c=ut(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new oo(d?c:u,d?u:c))}}return new io(t,n)}function so(e,t){return new io([new oo(e,t||e)],0)}function lo(e){return e.text?ot(e.from.line+e.text.length-1,Q(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function uo(e,t){if(at(e,t.from)<0)return e;if(at(e,t.to)<=0)return lo(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=lo(t).ch-t.to.ch),ot(n,r)}function co(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new oo(uo(i.anchor,t),uo(i.head,t)))}return ao(e.cm,n,e.sel.primIndex)}function fo(e,t,n){return e.line==t.line?ot(n.line,e.ch-t.ch+n.ch):ot(n.line+(e.line-t.line),e.ch)}function po(e,t,n){for(var r=[],i=ot(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=fo(s.from,i,o),u=fo(lo(s),i,o);if(i=s.to,o=u,"around"==n){var c=e.sel.ranges[a],d=at(c.head,c.anchor)<0;r[a]=new oo(d?u:l,d?l:u)}else r[a]=new oo(l,l)}return new io(r,e.sel.primIndex)}function ho(e){e.doc.mode=He(e.options,e.doc.modeOption),mo(e)}function mo(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Ri(e,100),e.state.modeGen++,e.curOp&&Pr(e)}function go(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Q(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function vo(e,t,n,i){function o(e){return n?n[e]:null}function a(e,n,r){cn(e,n,r,i),On(e,"change",e,t)}function s(e,t){for(var n=[],r=e;r<t;++r)n.push(new un(c[r],o(r),i));return n}r(o,"spansFor"),r(a,"update"),r(s,"linesFor");var l=t.from,u=t.to,c=t.text,d=Je(e,l.line),f=Je(e,u.line),p=Q(c),h=o(c.length-1),m=u.line-l.line;if(t.full)e.insert(0,s(0,c.length)),e.remove(c.length,e.size-c.length);else if(go(e,t)){var g=s(0,c.length-1);a(f,f.text,h),m&&e.remove(l.line,m),g.length&&e.insert(l.line,g)}else if(d==f)if(1==c.length)a(d,d.text.slice(0,l.ch)+p+d.text.slice(u.ch),h);else{var v=s(1,c.length-1);v.push(new un(p+d.text.slice(u.ch),h,i)),a(d,d.text.slice(0,l.ch)+c[0],o(0)),e.insert(l.line+1,v)}else if(1==c.length)a(d,d.text.slice(0,l.ch)+c[0]+f.text.slice(u.ch),o(0)),e.remove(l.line+1,m);else{a(d,d.text.slice(0,l.ch)+c[0],o(0)),a(f,p+f.text.slice(u.ch),h);var y=s(1,c.length-1);m>1&&e.remove(l.line+1,m-1),e.insert(l.line+1,y)}On(e,"change",e,t)}function yo(e,t,n){function i(e,r,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=r){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),i(s.doc,e,l))}}}r(i,"propagate"),i(e,null,!0)}function bo(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Mr(e),ho(e),Eo(e),e.options.direction=t.direction,e.options.lineWrapping||ln(e),e.options.mode=t.modeOption,Pr(e)}function Eo(e){("rtl"==e.doc.direction?M:k)(e.display.lineDiv,"CodeMirror-rtl")}function To(e){Li(e,(function(){Eo(e),Pr(e)}))}function wo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Co(e,t){var n={from:lt(t.from),to:lo(t),text:Xe(e,t.from,t.to)};return Io(e,n,t.from.line,t.to.line+1),yo(e,(function(e){return Io(e,n,t.from.line,t.to.line+1)}),!0),n}function xo(e){for(;e.length&&Q(e).ranges;)e.pop()}function So(e,t){return t?(xo(e.done),Q(e.done)):e.done.length&&!Q(e.done).ranges?Q(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Q(e.done)):void 0}function No(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=So(i,i.lastOp==r)))a=Q(o.changes),0==at(t.from,t.to)&&0==at(t.from,a.to)?a.to=lo(t):o.changes.push(Co(e,t));else{var l=Q(i.done);for(l&&l.ranges||Oo(e.sel,i.done),o={changes:[Co(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ve(e,"historyAdded")}function ko(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function _o(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||ko(e,o,Q(i.done),t))?i.done[i.done.length-1]=t:Oo(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&xo(i.undone)}function Oo(e,t){var n=Q(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Io(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Lo(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Ao(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Lo(n[i]));return r}function Do(e,t){var n=Ao(e,t),r=Vt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Mo(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?io.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var u=a[l],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var d in u)(c=d.match(/^spans_(\d+)$/))&&B(t,Number(c[1]))>-1&&(Q(s)[d]=u[d],delete u[d])}}}return r}function Ro(e,t,n,r){if(r){var i=e.anchor;if(n){var o=at(t,i)<0;o!=at(n,i)<0?(i=t,t=n):o!=at(t,n)<0&&(t=n)}return new oo(i,t)}return new oo(n||t,t)}function Fo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),$o(e,new io([Ro(e.sel.primary(),t,n,i)],0),r)}function Po(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Ro(e.sel.ranges[o],t[o],null,i);$o(e,ao(e.cm,r,e.sel.primIndex),n)}function jo(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,$o(e,ao(e.cm,i,e.sel.primIndex),r)}function Vo(e,t,n,r){$o(e,so(t,n),r)}function Uo(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new oo(ft(e,t[n].anchor),ft(e,t[n].head))},origin:n&&n.origin};return ve(e,"beforeSelectionChange",e,r),e.cm&&ve(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?ao(e.cm,r.ranges,r.ranges.length-1):t}function Bo(e,t,n){var r=e.history.done,i=Q(r);i&&i.ranges?(r[r.length-1]=t,qo(e,t,n)):$o(e,t,n)}function $o(e,t,n){qo(e,t,n),_o(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function qo(e,t,n){(Ee(e,"beforeSelectionChange")||e.cm&&Ee(e.cm,"beforeSelectionChange"))&&(t=Uo(e,t,n));var r=n&&n.bias||(at(t.primary().head,e.sel.primary().head)<0?-1:1);Ho(e,Wo(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||si(e.cm)}function Ho(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,be(e.cm)),On(e,"cursorActivity",e))}function Go(e){Ho(e,Wo(e,e.sel,null,!1))}function Wo(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=Ko(e,a.anchor,s&&s.anchor,n,r),u=Ko(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||u!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new oo(l,u))}return i?ao(e.cm,i,t.primIndex):t}function zo(e,t,n,r,i){var o=Je(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(u?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c?s.to>=t.ch:s.to>t.ch))){if(i&&(ve(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),f=void 0;if((r<0?c:u)&&(d=Qo(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(f=at(d,n))&&(r<0?f<0:f>0))return zo(e,d,t,r,i)}var p=l.find(r<0?-1:1);return(r<0?u:c)&&(p=Qo(e,p,r,p.line==t.line?o:null)),p?zo(e,p,t,r,i):null}}return t}function Ko(e,t,n,r,i){var o=r||1,a=zo(e,t,n,o,i)||!i&&zo(e,t,n,o,!0)||zo(e,t,n,-o,i)||!i&&zo(e,t,n,-o,!0);return a||(e.cantEdit=!0,ot(e.first,0))}function Qo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ft(e,ot(t.line-1)):null:n>0&&t.ch==(r||Je(e,t.line)).text.length?t.line<e.first+e.size-1?ot(t.line+1,0):null:new ot(t.line,t.ch+n)}function Yo(e){e.setSelection(ot(e.firstLine(),0),ot(e.lastLine()),q)}function Jo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=ft(e,t)),n&&(r.to=ft(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),ve(e,"beforeChange",e,r),e.cm&&ve(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Xo(e,t,n){if(e.cm){if(!e.cm.curOp)return Ai(e.cm,Xo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Ee(e,"beforeChange")||e.cm&&Ee(e.cm,"beforeChange"))||(t=Jo(e,t,!0))){var r=Ot&&!n&&Bt(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Zo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Zo(e,t)}}function Zo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=at(t.from,t.to)){var n=co(e,t);No(e,t,n,e.cm?e.cm.curOp.id:NaN),na(e,t,n,Vt(e,t));var r=[];yo(e,(function(e,n){n||-1!=B(r,e.history)||(sa(e.history,t),r.push(e.history)),na(e,t,null,Vt(e,t))}))}}function ea(e,t,n){var i=e.cm&&e.cm.state.suppressEdits;if(!i||n){for(var o,a=e.history,s=e.sel,l="undo"==t?a.done:a.undone,u="undo"==t?a.undone:a.done,c=0;c<l.length&&(o=l[c],n?!o.ranges||o.equals(e.sel):o.ranges);c++);if(c!=l.length){for(a.lastOrigin=a.lastSelOrigin=null;;){if(!(o=l.pop()).ranges){if(i)return void l.push(o);break}if(Oo(o,u),n&&!o.equals(e.sel))return void $o(e,o,{clearRedo:!1});s=o}var d=[];Oo(s,u),u.push({changes:d,generation:a.generation}),a.generation=o.generation||++a.maxGeneration;for(var f=Ee(e,"beforeChange")||e.cm&&Ee(e.cm,"beforeChange"),p=r((function(n){var r=o.changes[n];if(r.origin=t,f&&!Jo(e,r,!1))return l.length=0,{};d.push(Co(e,r));var i=n?co(e,r):Q(l);na(e,r,i,Do(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:lo(r)});var a=[];yo(e,(function(e,t){t||-1!=B(a,e.history)||(sa(e.history,r),a.push(e.history)),na(e,r,null,Do(e,r))}))}),"loop"),h=o.changes.length-1;h>=0;--h){var m=p(h);if(m)return m.v}}}}function ta(e,t){if(0!=t&&(e.first+=t,e.sel=new io(Y(e.sel.ranges,(function(e){return new oo(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Pr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)jr(e.cm,r,"gutter")}}function na(e,t,n,r){if(e.cm&&!e.cm.curOp)return Ai(e.cm,na)(e,t,n,r);if(t.to.line<e.first)ta(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ta(e,i),t={from:ot(e.first,0),to:ot(t.to.line+i,t.to.ch),text:[Q(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ot(o,Je(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Xe(e,t.from,t.to),n||(n=co(e,t)),e.cm?ra(e.cm,t,r):vo(e,t,r),qo(e,n,q),e.cantEdit&&Ko(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function ra(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=tt(Xt(Je(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&be(e),vo(r,t,n,Dr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=sn(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),_t(r,o.line),Ri(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?Pr(e):o.line!=a.line||1!=t.text.length||go(e.doc,t)?Pr(e,o.line,a.line+1,u):jr(e,o.line,"text");var c=Ee(e,"changes"),d=Ee(e,"change");if(d||c){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&On(e,"change",e,f),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function ia(e,t,n,r,i){var o;r||(r=n),at(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Xo(e,{from:n,to:r,text:t,origin:i})}function oa(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function aa(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)oa(o.ranges[s].anchor,t,n,r),oa(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=ot(u.from.line+r,u.from.ch),u.to=ot(u.to.line+r,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function sa(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;aa(e.done,n,r,i),aa(e.undone,n,r,i)}function la(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Je(e,dt(e,t)):i=tt(t),null==i?null:(r(o,i)&&e.cm&&jr(e.cm,i,n),o)}function ua(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function ca(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}oo.prototype.from=function(){return ct(this.anchor,this.head)},oo.prototype.to=function(){return ut(this.anchor,this.head)},oo.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},r(ao,"normalizeSelection"),r(so,"simpleSelection"),r(lo,"changeEnd"),r(uo,"adjustForChange"),r(co,"computeSelAfterChange"),r(fo,"offsetPos"),r(po,"computeReplacedSel"),r(ho,"loadMode"),r(mo,"resetModeState"),r(go,"isWholeLineUpdate"),r(vo,"updateDoc"),r(yo,"linkedDocs"),r(bo,"attachDoc"),r(Eo,"setDirectionClass"),r(To,"directionChanged"),r(wo,"History"),r(Co,"historyChangeFromChange"),r(xo,"clearSelectionEvents"),r(So,"lastChangeEvent"),r(No,"addChangeToHistory"),r(ko,"selectionEventCanBeMerged"),r(_o,"addSelectionToHistory"),r(Oo,"pushSelectionToHistory"),r(Io,"attachLocalSpans"),r(Lo,"removeClearedSpans"),r(Ao,"getOldSpans"),r(Do,"mergeOldSpans"),r(Mo,"copyHistoryArray"),r(Ro,"extendRange"),r(Fo,"extendSelection"),r(Po,"extendSelections"),r(jo,"replaceOneSelection"),r(Vo,"setSimpleSelection"),r(Uo,"filterSelectionChange"),r(Bo,"setSelectionReplaceHistory"),r($o,"setSelection"),r(qo,"setSelectionNoUndo"),r(Ho,"setSelectionInner"),r(Go,"reCheckSelection"),r(Wo,"skipAtomicInSelection"),r(zo,"skipAtomicInner"),r(Ko,"skipAtomic"),r(Qo,"movePos"),r(Yo,"selectAll"),r(Jo,"filterChange"),r(Xo,"makeChange"),r(Zo,"makeChangeInner"),r(ea,"makeChangeFromHistory"),r(ta,"shiftDoc"),r(na,"makeChangeSingleDoc"),r(ra,"makeChangeSingleDocInEditor"),r(ia,"replaceRange"),r(oa,"rebaseHistSelSingle"),r(aa,"rebaseHistArray"),r(sa,"rebaseHist"),r(la,"changeLine"),r(ua,"LeafChunk"),ua.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,dn(i),On(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},r(ca,"BranchChunk"),ca.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof ua))){var s=[];this.collapse(s),this.children=[new ua(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new ua(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new ca(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=B(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new ca(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var da=r((function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t}),"LineWidget");function fa(e,t,n){an(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ai(e,n)}function pa(e,t,n,r){var i=new da(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),la(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!rn(e,t)){var r=an(t)<e.scrollTop;et(t,t.height+qn(i)),r&&ai(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&On(o,"lineWidgetAdded",o,i,"number"==typeof t?t:tt(t)),i}da.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=tt(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=qn(this);et(n,Math.max(0,n.height-o)),e&&(Li(e,(function(){fa(e,n,-o),jr(e,r,"widget")})),On(e,"lineWidgetCleared",e,this,r))}},da.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=qn(this)-t;i&&(rn(this.doc,r)||et(r,r.height+i),n&&Li(n,(function(){n.curOp.forceUpdate=!0,fa(n,r,i),On(n,"lineWidgetChanged",n,e,tt(r))})))},Te(da),r(fa,"adjustScrollWhenAboveVisible"),r(pa,"addLineWidget");var ha=0,ma=r((function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++ha}),"TextMarker");function ga(e,t,n,r,i){if(r&&r.shared)return ya(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return Ai(e.cm,ga)(e,t,n,r,i);var o=new ma(e,i),a=at(t,n);if(r&&j(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=L("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Jt(e,t.line,t,n,o)||t.line!=n.line&&Jt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");At()}o.addToHistory&&No(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(r){u&&o.collapsed&&!u.options.lineWrapping&&Xt(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&et(r,0),Ft(r,new Dt(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){rn(e,t)&&et(t,0)})),o.clearOnEnter&&he(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Lt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++ha,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)Pr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)jr(u,c,"text");o.atomic&&Go(u.doc),On(u,"markerAdded",u,o)}return o}ma.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ci(e),Ee(this,"clear")){var n=this.find();n&&On(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Mt(a.markedSpans,this);e&&!this.collapsed?jr(e,tt(a),"text"):e&&(null!=s.to&&(i=tt(a)),null!=s.from&&(r=tt(a))),a.markedSpans=Rt(a.markedSpans,s),null==s.from&&this.collapsed&&!rn(this.doc,a)&&e&&et(a,Or(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=Xt(this.lines[l]),c=sn(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Pr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Go(e.doc)),e&&On(e,"markerCleared",e,this,r,i),t&&xi(e),this.parent&&this.parent.clear()}},ma.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Mt(o.markedSpans,this);if(null!=a.from&&(n=ot(t?o:tt(o),a.from),-1==e))return n;if(null!=a.to&&(r=ot(t?o:tt(o),a.to),1==e))return r}return n&&{from:n,to:r}},ma.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Li(r,(function(){var i=t.line,o=tt(t.line),a=tr(r,o);if(a&&(cr(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!rn(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=qn(n)-s;l&&et(i,i.height+l)}On(r,"markerChanged",r,e)}))},ma.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=B(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ma.prototype.detachLine=function(e){if(this.lines.splice(B(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Te(ma),r(ga,"markText");var va=r((function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this}),"SharedTextMarker");function ya(e,t,n,r,i){(r=j(r)).shared=!1;var o=[ga(e,t,n,r,i)],a=o[0],s=r.widgetNode;return yo(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(ga(e,ft(e,t),ft(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=Q(o)})),new va(o,a)}function ba(e){return e.findMarks(ot(e.first,0),e.clipPos(ot(e.lastLine())),(function(e){return e.parent}))}function Ea(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(at(o,a)){var s=ga(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function Ta(e){for(var t=r((function(t){var n=e[t],r=[n.primary.doc];yo(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==B(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}}),"loop"),n=0;n<e.length;n++)t(n)}va.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();On(this,"clear")}},va.prototype.find=function(e,t){return this.primary.find(e,t)},Te(va),r(ya,"markTextShared"),r(ba,"findSharedMarkers"),r(Ea,"copySharedMarkers"),r(Ta,"detachSharedMarkers");var wa=0,Ca=r((function(e,t,n,r,i){if(!(this instanceof Ca))return new Ca(e,t,n,r,i);null==n&&(n=0),ca.call(this,[new ua([new un("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=ot(n,0);this.sel=so(o),this.history=new wo(null),this.id=++wa,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),vo(this,{from:o,to:o,text:e}),$o(this,so(o),q)}),"Doc");Ca.prototype=Z(ca.prototype,{constructor:Ca,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ze(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Mi((function(e){var t=ot(this.first,0),n=this.first+this.size-1;Xo(this,{from:t,to:ot(n,Je(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&li(this.cm,0,0),$o(this,so(t),q)})),replaceRange:function(e,t,n,r){ia(this,e,t=ft(this,t),n=n?ft(this,n):t,r)},getRange:function(e,t,n){var r=Xe(this,ft(this,e),ft(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(rt(this,e))return Je(this,e)},getLineNumber:function(e){return tt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Je(this,e)),Xt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ft(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Mi((function(e,t,n){Vo(this,ft(this,"number"==typeof e?ot(e,t||0):e),null,n)})),setSelection:Mi((function(e,t,n){Vo(this,ft(this,e),ft(this,t||e),n)})),extendSelection:Mi((function(e,t,n){Fo(this,ft(this,e),t&&ft(this,t),n)})),extendSelections:Mi((function(e,t){Po(this,ht(this,e),t)})),extendSelectionsBy:Mi((function(e,t){Po(this,ht(this,Y(this.sel.ranges,e)),t)})),setSelections:Mi((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new oo(ft(this,e[i].anchor),ft(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),$o(this,ao(this.cm,r,t),n)}})),addSelection:Mi((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new oo(ft(this,e),ft(this,t||e))),$o(this,ao(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Xe(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Xe(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Mi((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&po(this,r,t),l=r.length-1;l>=0;l--)Xo(this,r[l]);s?Bo(this,s):this.cm&&si(this.cm)})),undo:Mi((function(){ea(this,"undo")})),redo:Mi((function(){ea(this,"redo")})),undoSelection:Mi((function(){ea(this,"undo",!0)})),redoSelection:Mi((function(){ea(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new wo(this.history),yo(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Mo(this.history.done),undone:Mo(this.history.undone)}},setHistory:function(e){var t=this.history=new wo(this.history);t.done=Mo(e.done.slice(0),null,!0),t.undone=Mo(e.undone.slice(0),null,!0)},setGutterMarker:Mi((function(e,t,n){return la(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&re(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:Mi((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&la(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,re(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!rt(this,e))return null;if(t=e,!(e=Je(this,e)))return null}else if(null==(t=tt(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Mi((function(e,t,n){return la(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(S(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:Mi((function(e,t,n){return la(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(S(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:Mi((function(e,t,n){return pa(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ga(this,ft(this,e),ft(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return ga(this,e=ft(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Je(this,(e=ft(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ft(this,e),t=ft(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),ft(this,ot(n,t))},indexFromPos:function(e){var t=(e=ft(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new Ca(Ze(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Ca(Ze(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Ea(r,ba(this)),r},unlinkDoc:function(e){if(e instanceof Fs&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Ta(ba(this));break}if(e.history==this.history){var n=[e.id];yo(e,(function(e){return n.push(e.id)}),!0),e.history=new wo(null),e.history.done=Mo(this.history.done,n),e.history.undone=Mo(this.history.undone,n)}},iterLinkedDocs:function(e){yo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Me(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Mi((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&To(this.cm))}))}),Ca.prototype.eachLine=Ca.prototype.iter;var xa=0;function Sa(e){var t=this;if(_a(t),!ye(t,e)&&!Hn(t.display,e)){we(e),s&&(xa=+new Date);var n=Rr(t,e,!0),i=e.dataTransfer.files;if(n&&!t.isReadOnly())if(i&&i.length&&window.FileReader&&window.File)for(var o=i.length,a=Array(o),l=0,u=r((function(){++l==o&&Ai(t,(function(){var e={from:n=ft(t.doc,n),to:n,text:t.doc.splitLines(a.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};Xo(t.doc,e),Bo(t.doc,so(ft(t.doc,n),ft(t.doc,lo(e))))}))()}),"markAsReadAndPasteIfAllFilesAreRead"),c=r((function(e,n){if(t.options.allowDropFileTypes&&-1==B(t.options.allowDropFileTypes,e.type))u();else{var r=new FileReader;r.onerror=function(){return u()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(a[n]=e),u()},r.readAsText(e)}}),"readTextFromFile"),d=0;d<i.length;d++)c(i[d],d);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),qo(t.doc,so(n,n)),p)for(var h=0;h<p.length;++h)ia(t.doc,"",p[h].anchor,p[h].head,"drag");t.replaceSelection(f,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Na(e,t){if(s&&(!e.state.draggingText||+new Date-xa<100))Se(t);else if(!ye(e,t)&&!Hn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=I("img",null,null,"position: fixed; left: 0; top: 0;");n.src="",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}function ka(e,t){var n=Rr(e,t);if(n){var r=document.createDocumentFragment();Gr(e,n,r),e.display.dragCursor||(e.display.dragCursor=I("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),O(e.display.dragCursor,r)}}function _a(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Oa(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}r(Sa,"onDrop"),r(Na,"onDragStart"),r(ka,"onDragOver"),r(_a,"clearDragCursor"),r(Oa,"forEachCodeMirror");var Ia=!1;function La(){Ia||(Aa(),Ia=!0)}function Aa(){var e;he(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Oa(Da)}),100))})),he(window,"blur",(function(){return Oa(Xr)}))}function Da(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}r(La,"ensureGlobalHandlers"),r(Aa,"registerGlobalHandlers"),r(Da,"onResize");for(var Ma={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ra=0;Ra<10;Ra++)Ma[Ra+48]=Ma[Ra+96]=String(Ra);for(var Fa=65;Fa<=90;Fa++)Ma[Fa]=String.fromCharCode(Fa);for(var Pa=1;Pa<=12;Pa++)Ma[Pa+111]=Ma[Pa+63235]="F"+Pa;var ja={};function Va(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Ua(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=Y(n.split(" "),Va),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var u in t)e[u]=t[u];return e}function Ba(e,t,n,r){var i=(t=Ga(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Ba(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Ba(e,t.fallthrough[o],n,r);if(a)return a}}}function $a(e){var t="string"==typeof e?e:Ma[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function qa(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(C?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(C?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Ha(e,t){if(f&&34==e.keyCode&&e.char)return!1;var n=Ma[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),qa(n,e,t))}function Ga(e){return"string"==typeof e?ja[e]:e}function Wa(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&at(o.from,Q(r).to)<=0;){var a=r.pop();if(at(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Li(e,(function(){for(var t=r.length-1;t>=0;t--)ia(e.doc,"",r[t].from,r[t].to,"+delete");si(e)}))}function za(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ka(e,t,n){var r=za(e,t.ch,n);return null==r?null:new ot(t.line,r,n<0?"after":"before")}function Qa(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=fe(n,t.doc.direction);if(o){var a,s=i<0?Q(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=nr(t,n);a=i<0?n.text.length-1:0;var c=rr(t,u,a).top;a=se((function(e){return rr(t,u,e).top==c}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=za(n,a,1))}else a=i<0?s.to:s.from;return new ot(r,a,l)}}return new ot(r,i<0?n.text.length:0,i<0?"before":"after")}function Ya(e,t,n,i){var o=fe(t,e.doc.direction);if(!o)return Ka(t,n,i);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var a=ce(o,n.ch,n.sticky),s=o[a];if("ltr"==e.doc.direction&&s.level%2==0&&(i>0?s.to>n.ch:s.from<n.ch))return Ka(t,n,i);var l,u=r((function(e,n){return za(t,e instanceof ot?e.ch:e,n)}),"mv"),c=r((function(n){return e.options.lineWrapping?(l=l||nr(e,t),xr(e,t,l,n)):{begin:0,end:t.text.length}}),"getWrappedLineExtent"),d=c("before"==n.sticky?u(n,-1):n.ch);if("rtl"==e.doc.direction||1==s.level){var f=1==s.level==i<0,p=u(n,f?1:-1);if(null!=p&&(f?p<=s.to&&p<=d.end:p>=s.from&&p>=d.begin)){var h=f?"before":"after";return new ot(n.line,p,h)}}var m=r((function(e,t,i){for(var a=r((function(e,t){return t?new ot(n.line,u(e,1),"before"):new ot(n.line,e,"after")}),"getRes");e>=0&&e<o.length;e+=t){var s=o[e],l=t>0==(1!=s.level),c=l?i.begin:u(i.end,-1);if(s.from<=c&&c<s.to)return a(c,l);if(c=l?s.from:u(s.to,-1),i.begin<=c&&c<i.end)return a(c,l)}}),"searchInVisualLine"),g=m(a+i,i,d);if(g)return g;var v=i>0?d.end:u(d.begin,-1);return null==v||i>0&&v==t.text.length||!(g=m(i>0?0:o.length-1,i,c(v)))?null:g}ja.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ja.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ja.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ja.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ja.default=b?ja.macDefault:ja.pcDefault,r(Va,"normalizeKeyName"),r(Ua,"normalizeKeyMap"),r(Ba,"lookupKey"),r($a,"isModifierKey"),r(qa,"addModifierNames"),r(Ha,"keyName"),r(Ga,"getKeyMap"),r(Wa,"deleteNearSelection"),r(za,"moveCharLogically"),r(Ka,"moveLogically"),r(Qa,"endOfLine"),r(Ya,"moveVisually");var Ja={selectAll:Yo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),q)},killLine:function(e){return Wa(e,(function(t){if(t.empty()){var n=Je(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:ot(t.head.line+1,0)}:{from:t.head,to:ot(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Wa(e,(function(t){return{from:ot(t.from().line,0),to:ft(e.doc,ot(t.to().line+1,0))}}))},delLineLeft:function(e){return Wa(e,(function(e){return{from:ot(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Wa(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Wa(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ot(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ot(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return Xa(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return es(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return Za(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),G)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),G)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?es(e,t.head):r}),G)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=V(e.getLine(o.line),o.ch,r);t.push(K(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Li(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Je(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new ot(i.line,i.ch-1)),i.ch>0)i=new ot(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ot(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Je(e.doc,i.line-1).text;a&&(i=new ot(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ot(i.line-1,a.length-1),i,"+transpose"))}n.push(new oo(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Li(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);si(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Xa(e,t){var n=Je(e.doc,t),r=Xt(n);return r!=n&&(t=tt(r)),Qa(!0,e,r,t,1)}function Za(e,t){var n=Je(e.doc,t),r=Zt(n);return r!=n&&(t=tt(r)),Qa(!0,e,n,t,-1)}function es(e,t){var n=Xa(e,t.line),r=Je(e.doc,n.line),i=fe(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return ot(n.line,a?0:o,n.sticky)}return n}function ts(e,t,n){if("string"==typeof t&&!(t=Ja[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=$}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function ns(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Ba(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Ba(t,e.options.extraKeys,n,e)||Ba(t,e.options.keyMap,n,e)}r(Xa,"lineStart"),r(Za,"lineEnd"),r(es,"lineStartSmart"),r(ts,"doHandleBinding"),r(ns,"lookupKeyForEditor");var rs=new U;function is(e,t,n,r){var i=e.state.keySeq;if(i){if($a(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:rs.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),os(e,i+" "+t,n,r))return!0}return os(e,t,n,r)}function os(e,t,n,r){var i=ns(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&On(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(we(n),Kr(e)),!!i}function as(e,t){var n=Ha(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?is(e,"Shift-"+n,t,(function(t){return ts(e,t,!0)}))||is(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ts(e,t)})):is(e,n,t,(function(t){return ts(e,t)})))}function ss(e,t,n){return is(e,"'"+n+"'",t,(function(t){return ts(e,t,!0)}))}r(is,"dispatchKey"),r(os,"dispatchKeyInner"),r(as,"handleKeyBinding"),r(ss,"handleCharBinding");var ls=null;function us(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=D(),ye(t,e)))){s&&l<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=as(t,e);f&&(ls=i?r:null,i||88!=r||Fe||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||cs(t)}}function cs(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(k(t,"CodeMirror-crosshair"),ge(document,"keyup",n),ge(document,"mouseover",n))}M(t,"CodeMirror-crosshair"),r(n,"up"),he(document,"keyup",n),he(document,"mouseover",n)}function ds(e){16==e.keyCode&&(this.doc.sel.shift=!1),ye(this,e)}function fs(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Hn(t.display,e)||ye(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(f&&n==ls)return ls=null,void we(e);if(!f||e.which&&!(e.which<10)||!as(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(ss(t,e,i)||t.display.input.onKeyPress(e))}}}r(us,"onKeyDown"),r(cs,"showCrossHair"),r(ds,"onKeyUp"),r(fs,"onKeyPress");var ps,hs,ms=r((function(e,t,n){this.time=e,this.pos=t,this.button=n}),"PastClick");function gs(e,t){var n=+new Date;return hs&&hs.compare(n,e,t)?(ps=hs=null,"triple"):ps&&ps.compare(n,e,t)?(hs=new ms(n,e,t),ps=null,"double"):(ps=new ms(n,e,t),hs=null,"single")}function vs(e){var t=this,n=t.display;if(!(ye(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Hn(n,e))u||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Ns(t,e)){var r=Rr(t,e),i=ke(e),o=r?gs(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&ys(t,i,r,o,e)||(1==i?r?Es(t,r,o,e):Ne(e)==n.scroller&&we(e):2==i?(r&&Fo(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(x?t.display.input.onContextMenu(e):Yr(t)))}}function ys(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),is(e,qa(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=Ja[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=$}finally{e.state.suppressEdits=!1}return r}))}function bs(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=E?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}function Es(e,t,n,r){s?setTimeout(P(Qr,e),0):e.curOp.focus=D();var i,o=bs(e,n,r),a=e.doc.sel;e.options.dragDrop&&Ie&&!e.isReadOnly()&&"single"==n&&(i=a.contains(t))>-1&&(at((i=a.ranges[i]).from(),t)<0||t.xRel>0)&&(at(i.to(),t)>0||t.xRel<0)?Ts(e,r,t,o):Cs(e,r,t,o)}function Ts(e,t,n,i){var o=e.display,a=!1,c=Ai(e,(function(t){u&&(o.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Yr(e)),ge(o.wrapper.ownerDocument,"mouseup",c),ge(o.wrapper.ownerDocument,"mousemove",d),ge(o.scroller,"dragstart",f),ge(o.scroller,"drop",c),a||(we(t),i.addNew||Fo(e.doc,n,null,null,i.extend),u&&!p||s&&9==l?setTimeout((function(){o.wrapper.ownerDocument.body.focus({preventScroll:!0}),o.input.focus()}),20):o.input.focus())})),d=r((function(e){a=a||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10}),"mouseMove"),f=r((function(){return a=!0}),"dragStart");u&&(o.scroller.draggable=!0),e.state.draggingText=c,c.copy=!i.moveOnDrag,he(o.wrapper.ownerDocument,"mouseup",c),he(o.wrapper.ownerDocument,"mousemove",d),he(o.scroller,"dragstart",f),he(o.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return o.input.focus()}),20),o.scroller.dragDrop&&o.scroller.dragDrop()}function ws(e,t,n){if("char"==n)return new oo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new oo(ot(t.line,0),ft(e.doc,ot(t.line+1,0)));var r=n(e,t);return new oo(r.from,r.to)}function Cs(e,t,n,i){s&&Yr(e);var o=e.display,a=e.doc;we(t);var l,u,c=a.sel,d=c.ranges;if(i.addNew&&!i.extend?(u=a.sel.contains(n),l=u>-1?d[u]:new oo(n,n)):(l=a.sel.primary(),u=a.sel.primIndex),"rectangle"==i.unit)i.addNew||(l=new oo(n,n)),n=Rr(e,t,!0,!0),u=-1;else{var f=ws(e,n,i.unit);l=i.extend?Ro(l,f.anchor,f.head,i.extend):f}i.addNew?-1==u?(u=d.length,$o(a,ao(e,d.concat([l]),u),{scroll:!1,origin:"*mouse"})):d.length>1&&d[u].empty()&&"char"==i.unit&&!i.extend?($o(a,ao(e,d.slice(0,u).concat(d.slice(u+1)),0),{scroll:!1,origin:"*mouse"}),c=a.sel):jo(a,u,l,H):(u=0,$o(a,new io([l],0),H),c=a.sel);var p=n;function h(t){if(0!=at(p,t))if(p=t,"rectangle"==i.unit){for(var r=[],o=e.options.tabSize,s=V(Je(a,n.line).text,n.ch,o),d=V(Je(a,t.line).text,t.ch,o),f=Math.min(s,d),h=Math.max(s,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Je(a,m).text,y=W(v,f,o);f==h?r.push(new oo(ot(m,y),ot(m,y))):v.length>y&&r.push(new oo(ot(m,y),ot(m,W(v,h,o))))}r.length||r.push(new oo(n,n)),$o(a,ao(e,c.ranges.slice(0,u).concat(r),u),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,E=l,T=ws(e,t,i.unit),w=E.anchor;at(T.anchor,w)>0?(b=T.head,w=ct(E.from(),T.anchor)):(b=T.anchor,w=ut(E.to(),T.head));var C=c.ranges.slice(0);C[u]=xs(e,new oo(ft(a,w),b)),$o(a,ao(e,C,u),H)}}r(h,"extendTo");var m=o.wrapper.getBoundingClientRect(),g=0;function v(t){var n=++g,r=Rr(e,t,!0,"rectangle"==i.unit);if(r)if(0!=at(r,p)){e.curOp.focus=D(),h(r);var s=ti(o,a);(r.line>=s.to||r.line<s.from)&&setTimeout(Ai(e,(function(){g==n&&v(t)})),150)}else{var l=t.clientY<m.top?-20:t.clientY>m.bottom?20:0;l&&setTimeout(Ai(e,(function(){g==n&&(o.scroller.scrollTop+=l,v(t))})),50)}}function y(t){e.state.selectingText=!1,g=1/0,t&&(we(t),o.input.focus()),ge(o.wrapper.ownerDocument,"mousemove",b),ge(o.wrapper.ownerDocument,"mouseup",E),a.history.lastSelOrigin=null}r(v,"extend"),r(y,"done");var b=Ai(e,(function(e){0!==e.buttons&&ke(e)?v(e):y(e)})),E=Ai(e,y);e.state.selectingText=E,he(o.wrapper.ownerDocument,"mousemove",b),he(o.wrapper.ownerDocument,"mouseup",E)}function xs(e,t){var n=t.anchor,r=t.head,i=Je(e.doc,n.line);if(0==at(n,r)&&n.sticky==r.sticky)return t;var o=fe(i);if(!o)return t;var a=ce(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ce(o,r.ch,r.sticky),d=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?d<0:d>0}var f=o[u+(l?-1:0)],p=l==(1==f.level),h=p?f.from:f.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new oo(new ot(n.line,h,m),r)}function Ss(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&we(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Ee(e,n))return xe(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=i)return ve(e,n,e,nt(e.doc,o),e.display.gutterSpecs[l].className,t),xe(t)}}function Ns(e,t){return Ss(e,t,"gutterClick",!0)}function ks(e,t){Hn(e.display,t)||_s(e,t)||ye(e,t,"contextmenu")||x||e.display.input.onContextMenu(t)}function _s(e,t){return!!Ee(e,"gutterContextMenu")&&Ss(e,t,"gutterContextMenu",!1)}function Os(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(e)}ms.prototype.compare=function(e,t,n){return this.time+400>e&&0==at(t,this.pos)&&n==this.button},r(gs,"clickRepeat"),r(vs,"onMouseDown"),r(ys,"handleMappedButton"),r(bs,"configureMouse"),r(Es,"leftButtonDown"),r(Ts,"leftButtonStartDrag"),r(ws,"rangeForUnit"),r(Cs,"leftButtonSelect"),r(xs,"bidiSimplify"),r(Ss,"gutterEvent"),r(Ns,"clickInGutter"),r(ks,"onContextMenu"),r(_s,"contextMenuInGutter"),r(Os,"themeChanged");var Is={toString:function(){return"CodeMirror.Init"}},Ls={},As={};function Ds(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Is&&i(e,t,n)}:i)}r(n,"option"),e.defineOption=n,e.Init=Is,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,ho(e)}),!0),n("indentUnit",2,ho,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){mo(e),fr(e),Pr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ot(r,o))}r++}));for(var i=n.length-1;i>=0;i--)ia(e.doc,t,n[i],ot(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Is&&e.refresh()})),n("specialCharPlaceholder",gn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!T),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Os(e),Ji(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Ga(t),i=n!=Is&&Ga(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Rs,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Qi(t,e.options.lineNumbers),Ji(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Ar(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return yi(e)}),!0),n("scrollbarStyle","native",(function(e){Ti(e),yi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Qi(e.options.gutters,t),Ji(e)}),!0),n("firstLineNumber",1,Ji,!0),n("lineNumberFormatter",(function(e){return e}),Ji,!0),n("showCursorWhenSelecting",!1,qr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Xr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Ms),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,qr,!0),n("singleCursorHeightPerLine",!0,qr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,mo,!0),n("addModeClass",!1,mo,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,mo,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Ms(e,t,n){if(!t!=!(n&&n!=Is)){var r=e.display.dragFunctions,i=t?he:ge;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Rs(e){e.options.lineWrapping?(M(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(k(e.display.wrapper,"CodeMirror-wrap"),ln(e)),Mr(e),Pr(e),fr(e),setTimeout((function(){return yi(e)}),100)}function Fs(e,t){var n=this;if(!(this instanceof Fs))return new Fs(e,t);this.options=t=t?j(t):{},j(Ls,t,!1);var r=t.value;"string"==typeof r?r=new Ca(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Fs.inputStyles[t.inputStyle](this),o=this.display=new Xi(e,r,i,t);for(var a in o.wrapper.CodeMirror=this,Os(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ti(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new U,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),s&&l<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Ps(this),La(),Ci(this),this.curOp.forceUpdate=!0,bo(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Jr(n)}),20):Xr(this),As)As.hasOwnProperty(a)&&As[a](this,t[a],Is);Ki(this),t.finishInit&&t.finishInit(this);for(var c=0;c<js.length;++c)js[c](this);xi(this),u&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Ps(e){var t=e.display;he(t.scroller,"mousedown",Ai(e,vs)),he(t.scroller,"dblclick",s&&l<11?Ai(e,(function(t){if(!ye(e,t)){var n=Rr(e,t);if(n&&!Ns(e,t)&&!Hn(e.display,t)){we(t);var r=e.findWordAt(n);Fo(e.doc,r.anchor,r.head)}}})):function(t){return ye(e,t)||we(t)}),he(t.scroller,"contextmenu",(function(t){return ks(e,t)})),he(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||ks(e,n)}));var n,i={end:0};function o(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(i=t.activeTouch).end=+new Date)}function a(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function u(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}r(o,"finishTouch"),r(a,"isMouseLikeTouchEvent"),r(u,"farAway"),he(t.scroller,"touchstart",(function(r){if(!ye(e,r)&&!a(r)&&!Ns(e,r)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-i.end<=300?i:null},1==r.touches.length&&(t.activeTouch.left=r.touches[0].pageX,t.activeTouch.top=r.touches[0].pageY)}})),he(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),he(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Hn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var i,a=e.coordsChar(t.activeTouch,"page");i=!r.prev||u(r,r.prev)?new oo(a,a):!r.prev.prev||u(r,r.prev.prev)?e.findWordAt(a):new oo(ot(a.line,0),ft(e.doc,ot(a.line+1,0))),e.setSelection(i.anchor,i.head),e.focus(),we(n)}o()})),he(t.scroller,"touchcancel",o),he(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(fi(e,t.scroller.scrollTop),hi(e,t.scroller.scrollLeft,!0),ve(e,"scroll",e))})),he(t.scroller,"mousewheel",(function(t){return ro(e,t)})),he(t.scroller,"DOMMouseScroll",(function(t){return ro(e,t)})),he(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ye(e,t)||Se(t)},over:function(t){ye(e,t)||(ka(e,t),Se(t))},start:function(t){return Na(e,t)},drop:Ai(e,Sa),leave:function(t){ye(e,t)||_a(e)}};var c=t.input.getField();he(c,"keyup",(function(t){return ds.call(e,t)})),he(c,"keydown",Ai(e,us)),he(c,"keypress",Ai(e,fs)),he(c,"focus",(function(t){return Jr(e,t)})),he(c,"blur",(function(t){return Xr(e,t)}))}r(Ds,"defineOptions"),r(Ms,"dragDropChanged"),r(Rs,"wrappingChanged"),r(Fs,"CodeMirror"),Fs.defaults=Ls,Fs.optionHandlers=As,r(Ps,"registerEventHandlers");var js=[];function Vs(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=bt(e,t).state:n="prev");var a=e.options.tabSize,s=Je(o,t),l=V(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==$||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?V(Je(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)f+=a,d+="\t";if(f<u&&(d+=K(u-f)),d!=c)return ia(o,d,ot(t,0),ot(t,c.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<c.length){var g=ot(t,c.length);jo(o,h,new oo(g,g));break}}}Fs.defineInitHook=function(e){return js.push(e)},r(Vs,"indentLine");var Us=null;function Bs(e){Us=e}function $s(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Me(t),u=null;if(s&&r.ranges.length>1)if(Us&&Us.text.join("\n")==t){if(r.ranges.length%Us.text.length==0){u=[];for(var c=0;c<Us.text.length;c++)u.push(o.splitLines(Us.text[c]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=Y(l,(function(e){return[e]})));for(var d=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var p=r.ranges[f],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=ot(h.line,h.ch-n):e.state.overwrite&&!s?m=ot(m.line,Math.min(Je(o,m.line).text.length,m.ch+Q(l).length)):s&&Us&&Us.lineWise&&Us.text.join("\n")==l.join("\n")&&(h=m=ot(h.line,0)));var g={from:h,to:m,text:u?u[f%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};Xo(e.doc,g),On(e,"inputRead",e,g)}t&&!s&&Hs(e,t),si(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function qs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Li(t,(function(){return $s(t,n,0,null,"paste")})),!0}function Hs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Vs(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Je(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Vs(e,i.head.line,"smart"));a&&On(e,"electricInput",e,i.head.line)}}}function Gs(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:ot(i,0),head:ot(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Ws(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function zs(){var e=I("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=I("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return u?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),Ws(e),t}function Ks(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Ai(this,t[e])(this,n,i),ve(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Ga(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Di((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");J(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,Pr(this)})),removeOverlay:Di((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Pr(this)}})),indentLine:Di((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),rt(this.doc,e)&&Vs(this,e,t,n)})),indentSelection:Di((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Vs(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&si(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Vs(this,l,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[r].from().ch>0&&jo(this.doc,r,new oo(o,u[r].to()),q)}}})),getTokenAt:function(e,t){return xt(this,e,t)},getLineTokens:function(e,t){return xt(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=ft(this.doc,e);var t,n=yt(this,Je(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var u=i._global[l];u.pred(o,this)&&-1==B(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(e,t){var n=this.doc;return bt(this,(e=dt(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return br(this,null==e?n.head:"object"==typeof e?ft(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return yr(this,ft(this.doc,e),t||"page")},coordsChar:function(e,t){return wr(this,(e=vr(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=vr(this,{top:e,left:0},t||"page").top,nt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Je(this.doc,e)}else r=e;return gr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-an(r):0)},defaultTextHeight:function(){return Or(this.display)},defaultCharWidth:function(){return Ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=br(this,ft(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>u&&(s=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&ii(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Di(us),triggerOnKeyPress:Di(fs),triggerOnKeyUp:ds,triggerOnMouseDown:Di(vs),execCommand:function(e){if(Ja.hasOwnProperty(e))return Ja[e].call(null,this)},triggerElectric:Di((function(e){Hs(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ft(this.doc,e),a=0;a<t&&!(o=Qs(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:Di((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Qs(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),G)})),deleteH:Di((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Wa(this,(function(n){var i=Qs(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=ft(this.doc,e),s=0;s<t;++s){var l=br(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Ys(this,l,i,n)).hitSide)break}return a},moveV:Di((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=br(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Ys(n,s,e,t);return"page"==t&&a==r.sel.primary()&&ai(n,yr(n,l,"div").top-s.top),l}),G),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=Je(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=ne(o,i)?function(e){return ne(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ne(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new oo(ot(e.line,n),ot(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?M(this.display.cursorDiv,"CodeMirror-overwrite"):k(this.display.cursorDiv,"CodeMirror-overwrite"),ve(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==D()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Di((function(e,t){li(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Kn(this)-this.display.barHeight,width:e.scrollWidth-Kn(this)-this.display.barWidth,clientHeight:Yn(this),clientWidth:Qn(this)}},scrollIntoView:Di((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ot(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?ui(this,e):di(this,e.from,e.to,e.margin)})),setSize:Di((function(e,t){var n=this,i=r((function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e}),"interpret");null!=e&&(this.display.wrapper.style.width=i(e)),null!=t&&(this.display.wrapper.style.height=i(t)),this.options.lineWrapping&&dr(this);var o=this.display.viewFrom;this.doc.iter(o,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){jr(n,o,"widget");break}++o})),this.curOp.forceUpdate=!0,ve(this,"refresh",this)})),operation:function(e){return Li(this,e)},startOperation:function(){return Ci(this)},endOperation:function(){return xi(this)},refresh:Di((function(){var e=this.display.cachedTextHeight;Pr(this),this.curOp.forceUpdate=!0,fr(this),li(this,this.doc.scrollLeft,this.doc.scrollTop),Gi(this.display),(null==e||Math.abs(e-Or(this.display))>.5||this.options.lineWrapping)&&Mr(this),ve(this,"refresh",this)})),swapDoc:Di((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),bo(this,e),fr(this),this.display.input.reset(),li(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,On(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Te(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function Qs(e,t,n,i,o){var a=t,s=n,l=Je(e,t.line),u=o&&"rtl"==e.direction?-n:n;function c(){var n=t.line+u;return!(n<e.first||n>=e.first+e.size)&&(t=new ot(n,t.ch,t.sticky),l=Je(e,n))}function d(r){var a;if("codepoint"==i){var s=l.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(s))a=null;else{var d=n>0?s>=55296&&s<56320:s>=56320&&s<57343;a=new ot(t.line,Math.max(0,Math.min(l.text.length,t.ch+n*(d?2:1))),-n)}}else a=o?Ya(e.cm,l,t,n):Ka(l,t,n);if(null==a){if(r||!c())return!1;t=Qa(o,e.cm,l,t.line,u)}else t=a;return!0}if(r(c,"findNextLine"),r(d,"moveOnce"),"char"==i||"codepoint"==i)d();else if("column"==i)d(!0);else if("word"==i||"group"==i)for(var f=null,p="group"==i,h=e.cm&&e.cm.getHelper(t,"wordChars"),m=!0;!(n<0)||d(!m);m=!1){var g=l.text.charAt(t.ch)||"\n",v=ne(g,h)?"w":p&&"\n"==g?"n":!p||/\s/.test(g)?null:"p";if(!p||m||v||(v="s"),f&&f!=v){n<0&&(n=1,d(),t.sticky="after");break}if(v&&(f=v),n>0&&!d(!m))break}var y=Ko(e,t,a,s,!0);return st(a,y)&&(y.hitSide=!0),y}function Ys(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*Or(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=wr(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}r(Bs,"setLastCopied"),r($s,"applyTextInput"),r(qs,"handlePaste"),r(Hs,"triggerElectric"),r(Gs,"copyableRanges"),r(Ws,"disableBrowserMagic"),r(zs,"hiddenTextarea"),r(Ks,"addEditorMethods"),r(Qs,"findPosH"),r(Ys,"findPosV");var Js=r((function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new U,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null}),"ContentEditableInput");function Xs(e,t){var n=tr(e,t.line);if(!n||n.hidden)return null;var r=Je(e.doc,t.line),i=Xn(n,r,t.line),o=fe(r,e.doc.direction),a="left";o&&(a=ce(o,t.ch)%2?"right":"left");var s=ar(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Zs(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function el(e,t){return t&&(e.bad=!0),e}function tl(e,t,n,i,o){var a="",s=!1,l=e.doc.lineSeparator(),u=!1;function c(e){return function(t){return t.id==e}}function d(){s&&(a+=l,u&&(a+=l),s=u=!1)}function f(e){e&&(d(),a+=e)}function p(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void f(n);var r,a=t.getAttribute("cm-marker");if(a){var h=e.findMarks(ot(i,0),ot(o+1,0),c(+a));return void(h.length&&(r=h[0].find(0))&&f(Xe(e.doc,r.from,r.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&d();for(var g=0;g<t.childNodes.length;g++)p(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(u=!0),m&&(s=!0)}else 3==t.nodeType&&f(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(r(c,"recognizeMarker"),r(d,"close"),r(f,"addText"),r(p,"walk");p(t),t!=n;)t=t.nextSibling,u=!1;return a}function nl(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return el(e.clipPos(ot(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return rl(o,t,n)}}function rl(e,t,n){var i=e.text.firstChild,o=!1;if(!t||!A(i,t))return el(ot(tt(e.line),0),!0);if(t==i&&(o=!0,t=i.childNodes[n],n=0,!t)){var a=e.rest?Q(e.rest):e.line;return el(ot(tt(a),a.text.length),o)}var s=3==t.nodeType?t:null,l=t;for(s||1!=t.childNodes.length||3!=t.firstChild.nodeType||(s=t.firstChild,n&&(n=s.nodeValue.length));l.parentNode!=i;)l=l.parentNode;var u=e.measure,c=u.maps;function d(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?u.map:c[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var l=tt(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),ot(l,d)}}}r(d,"find");var f=d(s,l,n);if(f)return el(f,o);for(var p=l.nextSibling,h=s?s.nodeValue.length-n:0;p;p=p.nextSibling){if(f=d(p,p.firstChild,0))return el(ot(f.line,f.ch-h),o);h+=p.textContent.length}for(var m=l.previousSibling,g=n;m;m=m.previousSibling){if(f=d(m,m.firstChild,-1))return el(ot(f.line,f.ch+g),o);g+=m.textContent.length}}Js.prototype.init=function(e){var t=this,n=this,i=n.cm,o=n.div=e.lineDiv;function a(e){for(var t=e.target;t;t=t.parentNode){if(t==o)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function s(e){if(a(e)&&!ye(i,e)){if(i.somethingSelected())Bs({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=Gs(i);Bs({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation((function(){i.setSelections(t.ranges,0,q),i.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var r=Us.text.join("\n");if(e.clipboardData.setData("Text",r),e.clipboardData.getData("Text")==r)return void e.preventDefault()}var s=zs(),l=s.firstChild;i.display.lineSpace.insertBefore(s,i.display.lineSpace.firstChild),l.value=Us.text.join("\n");var u=D();F(l),setTimeout((function(){i.display.lineSpace.removeChild(s),u.focus(),u==o&&n.showPrimarySelection()}),50)}}o.contentEditable=!0,Ws(o,i.options.spellcheck,i.options.autocorrect,i.options.autocapitalize),r(a,"belongsToInput"),he(o,"paste",(function(e){!a(e)||ye(i,e)||qs(e,i)||l<=11&&setTimeout(Ai(i,(function(){return t.updateFromDOM()})),20)})),he(o,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),he(o,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),he(o,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),he(o,"touchstart",(function(){return n.forceCompositionEnd()})),he(o,"input",(function(){t.composing||t.readFromDOMSoon()})),r(s,"onCopyCut"),he(o,"copy",s),he(o,"cut",s)},Js.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Js.prototype.prepareSelection=function(){var e=Hr(this.cm,!1);return e.focus=D()==this.div,e},Js.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Js.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Js.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=nl(t,e.anchorNode,e.anchorOffset),s=nl(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=at(ct(a,s),i)||0!=at(ut(a,s),o)){var l=t.display.view,u=i.line>=t.display.viewFrom&&Xs(t,i)||{node:l[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Xs(t,o);if(!c){var d=l[l.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;c={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(u&&c){var p,h=e.rangeCount&&e.getRangeAt(0);try{p=N(u.node,u.offset,c.offset,c.node)}catch(e){}p&&(!n&&t.state.focused?(e.collapse(u.node,u.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Js.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Js.prototype.showMultipleSelections=function(e){O(this.cm.display.cursorDiv,e.cursors),O(this.cm.display.selectionDiv,e.selection)},Js.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Js.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return A(this.div,t)},Js.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&D()==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Js.prototype.blur=function(){this.div.blur()},Js.prototype.getField=function(){return this.div},Js.prototype.supportsTouch=function(){return!0},Js.prototype.receivedFocus=function(){var e=this,t=this;function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):Li(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),r(n,"poll"),this.polling.set(this.cm.options.pollInterval,n)},Js.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Js.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&d&&this.cm.display.gutterSpecs.length&&Zs(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=nl(t,e.anchorNode,e.anchorOffset),r=nl(t,e.focusNode,e.focusOffset);n&&r&&Li(t,(function(){$o(t.doc,so(n,r),q),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Js.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=ot(a.line-1,Je(r.doc,a.line-1).length)),s.ch==Je(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=ot(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Fr(r,a.line))?(t=tt(i.view[0].line),n=i.view[0].node):(t=tt(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=Fr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=tt(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(tl(r,n,u,t,l)),f=Xe(r.doc,ot(t,0),ot(l,Je(r.doc,l).text.length));d.length>1&&f.length>1;)if(Q(d)==Q(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}for(var p=0,h=0,m=d[0],g=f[0],v=Math.min(m.length,g.length);p<v&&m.charCodeAt(p)==g.charCodeAt(p);)++p;for(var y=Q(d),b=Q(f),E=Math.min(y.length-(1==d.length?p:0),b.length-(1==f.length?p:0));h<E&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==d.length&&1==f.length&&t==a.line)for(;p&&p>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;d[d.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var T=ot(t,p),w=ot(l,f.length?Q(f).length-h:0);return d.length>1||d[0]||at(T,w)?(ia(r.doc,d,T,w,"+input"),!0):void 0},Js.prototype.ensurePolled=function(){this.forceCompositionEnd()},Js.prototype.reset=function(){this.forceCompositionEnd()},Js.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Js.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Js.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Li(this.cm,(function(){return Pr(e.cm)}))},Js.prototype.setUneditable=function(e){e.contentEditable="false"},Js.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ai(this.cm,$s)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Js.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Js.prototype.onContextMenu=function(){},Js.prototype.resetPosition=function(){},Js.prototype.needsContentAttribute=!0,r(Xs,"posToDOM"),r(Zs,"isInGutter"),r(el,"badPos"),r(tl,"domTextBetween"),r(nl,"domToPos"),r(rl,"locateNodeInLineView");var il=r((function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new U,this.hasSelection=!1,this.composing=null}),"TextareaInput");function ol(e,t){if((t=t?j(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=D();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function i(){e.value=l.getValue()}var o;if(r(i,"save"),e.form&&(he(e.form,"submit",i),!t.leaveSubmitMethodAlone)){var a=e.form;o=a.submit;try{var s=a.submit=function(){i(),a.submit=o,a.submit(),a.submit=s}}catch(e){}}t.finishInit=function(n){n.save=i,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,i(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ge(e.form,"submit",i),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=o))}},e.style.display="none";var l=Fs((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return l}function al(e){e.off=ge,e.on=he,e.wheelEventPixels=no,e.Doc=Ca,e.splitLines=Me,e.countColumn=V,e.findColumn=W,e.isWordChar=te,e.Pass=$,e.signal=ve,e.Line=un,e.changeEnd=lo,e.scrollbarModel=Ei,e.Pos=ot,e.cmpPos=at,e.modes=Ve,e.mimeModes=Ue,e.resolveMode=qe,e.getMode=He,e.modeExtensions=Ge,e.extendMode=We,e.copyState=ze,e.startState=Qe,e.innerMode=Ke,e.commands=Ja,e.keyMap=ja,e.keyName=Ha,e.isModifierKey=$a,e.lookupKey=Ba,e.normalizeKeyMap=Ua,e.StringStream=Ye,e.SharedTextMarker=va,e.TextMarker=ma,e.LineWidget=da,e.e_preventDefault=we,e.e_stopPropagation=Ce,e.e_stop=Se,e.addClass=M,e.contains=A,e.rmClass=k,e.keyNames=Ma}il.prototype.init=function(e){var t=this,n=this,i=this.cm;this.createField(e);var o=this.textarea;function a(e){if(!ye(i,e)){if(i.somethingSelected())Bs({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=Gs(i);Bs({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,q):(n.prevInput="",o.value=t.text.join("\n"),F(o))}"cut"==e.type&&(i.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(o.style.width="0px"),he(o,"input",(function(){s&&l>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),he(o,"paste",(function(e){ye(i,e)||qs(e,i)||(i.state.pasteIncoming=+new Date,n.fastPoll())})),r(a,"prepareCopyCut"),he(o,"cut",a),he(o,"copy",a),he(e.scroller,"paste",(function(t){if(!Hn(e,t)&&!ye(i,t)){if(!o.dispatchEvent)return i.state.pasteIncoming=+new Date,void n.focus();var r=new Event("paste");r.clipboardData=t.clipboardData,o.dispatchEvent(r)}})),he(e.lineSpace,"selectstart",(function(t){Hn(e,t)||we(t)})),he(o,"compositionstart",(function(){var e=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}})),he(o,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},il.prototype.createField=function(e){this.wrapper=zs(),this.textarea=this.wrapper.firstChild},il.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},il.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Hr(e);if(e.options.moveInputWithCursor){var i=br(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},il.prototype.showSelection=function(e){var t=this.cm.display;O(t.cursorDiv,e.cursors),O(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},il.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&F(this.textarea),s&&l>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",s&&l>=9&&(this.hasSelection=null))}},il.prototype.getField=function(){return this.textarea},il.prototype.supportsTouch=function(){return!1},il.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||D()!=this.textarea))try{this.textarea.focus()}catch(e){}},il.prototype.blur=function(){this.textarea.blur()},il.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},il.prototype.receivedFocus=function(){this.slowPoll()},il.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},il.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,r(n,"p"),t.polling.set(20,n)},il.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Re(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(s&&l>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,u=Math.min(r.length,i.length);a<u&&r.charCodeAt(a)==i.charCodeAt(a);)++a;return Li(t,(function(){$s(t,i.slice(a),r.length-a,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},il.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},il.prototype.onKeyPress=function(){s&&l>=9&&(this.hasSelection=null),this.fastPoll()},il.prototype.onContextMenu=function(e){var t=this,n=t.cm,i=n.display,o=t.textarea;t.contextMenuPending&&t.contextMenuPending();var a=Rr(n,e),c=i.scroller.scrollTop;if(a&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(a)&&Ai(n,$o)(n.doc,so(a),q);var d,p=o.style.cssText,h=t.wrapper.style.cssText,m=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",o.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(e.clientY-m.top-5)+"px; left: "+(e.clientX-m.left-5)+"px;\n      z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",u&&(d=window.scrollY),i.input.focus(),u&&window.scrollTo(null,d),i.input.reset(),n.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=y,i.selForContextMenu=n.doc.sel,clearTimeout(i.detectingSelectAll),r(v,"prepareSelectAllHack"),r(y,"rehide"),s&&l>=9&&v(),x){Se(e);var g=r((function(){ge(window,"mouseup",g),setTimeout(y,20)}),"mouseup");he(window,"mouseup",g)}else setTimeout(y,50)}function v(){if(null!=o.selectionStart){var e=n.somethingSelected(),r="​"+(e?o.value:"");o.value="⇚",o.value=r,t.prevInput=e?"":"​",o.selectionStart=1,o.selectionEnd=r.length,i.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending==y&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,o.style.cssText=p,s&&l<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=c),null!=o.selectionStart)){(!s||s&&l<9)&&v();var e=0,a=r((function(){i.selForContextMenu==n.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&"​"==t.prevInput?Ai(n,Yo)(n):e++<10?i.detectingSelectAll=setTimeout(a,500):(i.selForContextMenu=null,i.input.reset())}),"poll");i.detectingSelectAll=setTimeout(a,200)}}},il.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},il.prototype.setUneditable=function(){},il.prototype.needsContentAttribute=!1,r(ol,"fromTextArea"),r(al,"addLegacyProps"),Ds(Fs),Ks(Fs);var sl="iter insert remove copy getEditor constructor".split(" ");for(var ll in Ca.prototype)Ca.prototype.hasOwnProperty(ll)&&B(sl,ll)<0&&(Fs.prototype[ll]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ca.prototype[ll]));return Te(Ca),Fs.inputStyles={textarea:il,contenteditable:Js},Fs.defineMode=function(e){Fs.defaults.mode||"null"==e||(Fs.defaults.mode=e),Be.apply(this,arguments)},Fs.defineMIME=$e,Fs.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Fs.defineMIME("text/plain","null"),Fs.defineExtension=function(e,t){Fs.prototype[e]=t},Fs.defineDocExtension=function(e,t){Ca.prototype[e]=t},Fs.fromTextArea=ol,al(Fs),Fs.version="5.65.3",Fs}()}(o);var a=o.exports;e.C=a;var s=i({__proto__:null,default:a},[o.exports]);e.c=s})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return r})),n.d(t,"versionInfo",(function(){return i})),n.d(t,"graphql",(function(){return to})),n.d(t,"graphqlSync",(function(){return no})),n.d(t,"resolveObjMapThunk",(function(){return It})),n.d(t,"resolveReadonlyArrayThunk",(function(){return Ot})),n.d(t,"GraphQLSchema",(function(){return Pn})),n.d(t,"GraphQLDirective",(function(){return cn})),n.d(t,"GraphQLScalarType",(function(){return Lt})),n.d(t,"GraphQLObjectType",(function(){return At})),n.d(t,"GraphQLInterfaceType",(function(){return Ut})),n.d(t,"GraphQLUnionType",(function(){return Bt})),n.d(t,"GraphQLEnumType",(function(){return qt})),n.d(t,"GraphQLInputObjectType",(function(){return Gt})),n.d(t,"GraphQLList",(function(){return bt})),n.d(t,"GraphQLNonNull",(function(){return Et})),n.d(t,"specifiedScalarTypes",(function(){return on})),n.d(t,"GraphQLInt",(function(){return Zt})),n.d(t,"GraphQLFloat",(function(){return en})),n.d(t,"GraphQLString",(function(){return tn})),n.d(t,"GraphQLBoolean",(function(){return nn})),n.d(t,"GraphQLID",(function(){return rn})),n.d(t,"GRAPHQL_MAX_INT",(function(){return Jt})),n.d(t,"GRAPHQL_MIN_INT",(function(){return Xt})),n.d(t,"specifiedDirectives",(function(){return gn})),n.d(t,"GraphQLIncludeDirective",(function(){return dn})),n.d(t,"GraphQLSkipDirective",(function(){return fn})),n.d(t,"GraphQLDeprecatedDirective",(function(){return hn})),n.d(t,"GraphQLSpecifiedByDirective",(function(){return mn})),n.d(t,"TypeKind",(function(){return _n})),n.d(t,"DEFAULT_DEPRECATION_REASON",(function(){return pn})),n.d(t,"introspectionTypes",(function(){return Dn})),n.d(t,"__Schema",(function(){return Tn})),n.d(t,"__Directive",(function(){return wn})),n.d(t,"__DirectiveLocation",(function(){return Cn})),n.d(t,"__Type",(function(){return xn})),n.d(t,"__Field",(function(){return Sn})),n.d(t,"__InputValue",(function(){return Nn})),n.d(t,"__EnumValue",(function(){return kn})),n.d(t,"__TypeKind",(function(){return On})),n.d(t,"SchemaMetaFieldDef",(function(){return In})),n.d(t,"TypeMetaFieldDef",(function(){return Ln})),n.d(t,"TypeNameMetaFieldDef",(function(){return An})),n.d(t,"isSchema",(function(){return Rn})),n.d(t,"isDirective",(function(){return ln})),n.d(t,"isType",(function(){return Ge})),n.d(t,"isScalarType",(function(){return ze})),n.d(t,"isObjectType",(function(){return Qe})),n.d(t,"isInterfaceType",(function(){return Je})),n.d(t,"isUnionType",(function(){return Ze})),n.d(t,"isEnumType",(function(){return tt})),n.d(t,"isInputObjectType",(function(){return rt})),n.d(t,"isListType",(function(){return ot})),n.d(t,"isNonNullType",(function(){return st})),n.d(t,"isInputType",(function(){return ut})),n.d(t,"isOutputType",(function(){return dt})),n.d(t,"isLeafType",(function(){return pt})),n.d(t,"isCompositeType",(function(){return mt})),n.d(t,"isAbstractType",(function(){return vt})),n.d(t,"isWrappingType",(function(){return Tt})),n.d(t,"isNullableType",(function(){return Ct})),n.d(t,"isNamedType",(function(){return Nt})),n.d(t,"isRequiredArgument",(function(){return Vt})),n.d(t,"isRequiredInputField",(function(){return zt})),n.d(t,"isSpecifiedScalarType",(function(){return an})),n.d(t,"isIntrospectionType",(function(){return Mn})),n.d(t,"isSpecifiedDirective",(function(){return vn})),n.d(t,"assertSchema",(function(){return Fn})),n.d(t,"assertDirective",(function(){return un})),n.d(t,"assertType",(function(){return We})),n.d(t,"assertScalarType",(function(){return Ke})),n.d(t,"assertObjectType",(function(){return Ye})),n.d(t,"assertInterfaceType",(function(){return Xe})),n.d(t,"assertUnionType",(function(){return et})),n.d(t,"assertEnumType",(function(){return nt})),n.d(t,"assertInputObjectType",(function(){return it})),n.d(t,"assertListType",(function(){return at})),n.d(t,"assertNonNullType",(function(){return lt})),n.d(t,"assertInputType",(function(){return ct})),n.d(t,"assertOutputType",(function(){return ft})),n.d(t,"assertLeafType",(function(){return ht})),n.d(t,"assertCompositeType",(function(){return gt})),n.d(t,"assertAbstractType",(function(){return yt})),n.d(t,"assertWrappingType",(function(){return wt})),n.d(t,"assertNullableType",(function(){return xt})),n.d(t,"assertNamedType",(function(){return kt})),n.d(t,"getNullableType",(function(){return St})),n.d(t,"getNamedType",(function(){return _t})),n.d(t,"validateSchema",(function(){return Vn})),n.d(t,"assertValidSchema",(function(){return Un})),n.d(t,"assertName",(function(){return qe})),n.d(t,"assertEnumValueName",(function(){return He})),n.d(t,"Token",(function(){return E})),n.d(t,"Source",(function(){return ae})),n.d(t,"Location",(function(){return b})),n.d(t,"OperationTypeNode",(function(){return x})),n.d(t,"getLocation",(function(){return c})),n.d(t,"printLocation",(function(){return d})),n.d(t,"printSourceLocation",(function(){return f})),n.d(t,"Lexer",(function(){return P})),n.d(t,"TokenKind",(function(){return k})),n.d(t,"parse",(function(){return le})),n.d(t,"parseValue",(function(){return ue})),n.d(t,"parseConstValue",(function(){return ce})),n.d(t,"parseType",(function(){return de})),n.d(t,"print",(function(){return Re})),n.d(t,"visit",(function(){return Le})),n.d(t,"visitInParallel",(function(){return Ae})),n.d(t,"getVisitFn",(function(){return Me})),n.d(t,"getEnterLeaveForKind",(function(){return De})),n.d(t,"BREAK",(function(){return Ie})),n.d(t,"Kind",(function(){return N})),n.d(t,"DirectiveLocation",(function(){return S})),n.d(t,"isDefinitionNode",(function(){return ir})),n.d(t,"isExecutableDefinitionNode",(function(){return or})),n.d(t,"isSelectionNode",(function(){return ar})),n.d(t,"isValueNode",(function(){return sr})),n.d(t,"isConstValueNode",(function(){return lr})),n.d(t,"isTypeNode",(function(){return ur})),n.d(t,"isTypeSystemDefinitionNode",(function(){return cr})),n.d(t,"isTypeDefinitionNode",(function(){return dr})),n.d(t,"isTypeSystemExtensionNode",(function(){return fr})),n.d(t,"isTypeExtensionNode",(function(){return pr})),n.d(t,"execute",(function(){return ji})),n.d(t,"executeSync",(function(){return Vi})),n.d(t,"defaultFieldResolver",(function(){return Zi})),n.d(t,"defaultTypeResolver",(function(){return Xi})),n.d(t,"responsePathAsArray",(function(){return Qr})),n.d(t,"getArgumentValues",(function(){return ti})),n.d(t,"getVariableValues",(function(){return ei})),n.d(t,"getDirectiveValues",(function(){return ni})),n.d(t,"subscribe",(function(){return ao})),n.d(t,"createSourceEventStream",(function(){return so})),n.d(t,"validate",(function(){return Di})),n.d(t,"ValidationContext",(function(){return Ai})),n.d(t,"specifiedRules",(function(){return _i})),n.d(t,"ExecutableDefinitionsRule",(function(){return hr})),n.d(t,"FieldsOnCorrectTypeRule",(function(){return mr})),n.d(t,"FragmentsOnCompositeTypesRule",(function(){return gr})),n.d(t,"KnownArgumentNamesRule",(function(){return vr})),n.d(t,"KnownDirectivesRule",(function(){return br})),n.d(t,"KnownFragmentNamesRule",(function(){return Er})),n.d(t,"KnownTypeNamesRule",(function(){return Tr})),n.d(t,"LoneAnonymousOperationRule",(function(){return Cr})),n.d(t,"NoFragmentCyclesRule",(function(){return Sr})),n.d(t,"NoUndefinedVariablesRule",(function(){return Nr})),n.d(t,"NoUnusedFragmentsRule",(function(){return kr})),n.d(t,"NoUnusedVariablesRule",(function(){return _r})),n.d(t,"OverlappingFieldsCanBeMergedRule",(function(){return Lr})),n.d(t,"PossibleFragmentSpreadsRule",(function(){return Ur})),n.d(t,"ProvidedRequiredArgumentsRule",(function(){return qr})),n.d(t,"ScalarLeafsRule",(function(){return Wr})),n.d(t,"SingleFieldSubscriptionsRule",(function(){return li})),n.d(t,"UniqueArgumentNamesRule",(function(){return di})),n.d(t,"UniqueDirectivesPerLocationRule",(function(){return pi})),n.d(t,"UniqueFragmentNamesRule",(function(){return vi})),n.d(t,"UniqueInputFieldNamesRule",(function(){return yi})),n.d(t,"UniqueOperationNamesRule",(function(){return bi})),n.d(t,"UniqueVariableNamesRule",(function(){return wi})),n.d(t,"ValuesOfCorrectTypeRule",(function(){return Ci})),n.d(t,"VariablesAreInputTypesRule",(function(){return Si})),n.d(t,"VariablesInAllowedPositionRule",(function(){return Ni})),n.d(t,"LoneSchemaDefinitionRule",(function(){return xr})),n.d(t,"UniqueOperationTypesRule",(function(){return Ei})),n.d(t,"UniqueTypeNamesRule",(function(){return Ti})),n.d(t,"UniqueEnumValueNamesRule",(function(){return hi})),n.d(t,"UniqueFieldDefinitionNamesRule",(function(){return mi})),n.d(t,"UniqueArgumentDefinitionNamesRule",(function(){return ci})),n.d(t,"UniqueDirectiveNamesRule",(function(){return fi})),n.d(t,"PossibleTypeExtensionsRule",(function(){return Br})),n.d(t,"NoDeprecatedCustomRule",(function(){return lo})),n.d(t,"NoSchemaIntrospectionCustomRule",(function(){return uo})),n.d(t,"GraphQLError",(function(){return h})),n.d(t,"syntaxError",(function(){return y})),n.d(t,"locatedError",(function(){return Fi})),n.d(t,"printError",(function(){return g})),n.d(t,"formatError",(function(){return v})),n.d(t,"getIntrospectionQuery",(function(){return co})),n.d(t,"getOperationAST",(function(){return fo})),n.d(t,"getOperationRootType",(function(){return po})),n.d(t,"introspectionFromSchema",(function(){return ho})),n.d(t,"buildClientSchema",(function(){return mo})),n.d(t,"buildASTSchema",(function(){return To})),n.d(t,"buildSchema",(function(){return wo})),n.d(t,"extendSchema",(function(){return go})),n.d(t,"lexicographicSortSchema",(function(){return Co})),n.d(t,"printSchema",(function(){return ko})),n.d(t,"printType",(function(){return Ao})),n.d(t,"printIntrospectionSchema",(function(){return _o})),n.d(t,"typeFromAST",(function(){return er})),n.d(t,"valueFromAST",(function(){return Xr})),n.d(t,"valueFromASTUntyped",(function(){return $e})),n.d(t,"astFromValue",(function(){return bn})),n.d(t,"TypeInfo",(function(){return tr})),n.d(t,"visitWithTypeInfo",(function(){return rr})),n.d(t,"coerceInputValue",(function(){return Yr})),n.d(t,"concatAST",(function(){return Uo})),n.d(t,"separateOperations",(function(){return Bo})),n.d(t,"stripIgnoredCharacters",(function(){return Ho})),n.d(t,"isEqualType",(function(){return Kt})),n.d(t,"isTypeSubTypeOf",(function(){return Qt})),n.d(t,"doTypesOverlap",(function(){return Yt})),n.d(t,"assertValidName",(function(){return Go})),n.d(t,"isValidNameError",(function(){return Wo})),n.d(t,"BreakingChangeType",(function(){return zo})),n.d(t,"DangerousChangeType",(function(){return Ko})),n.d(t,"findBreakingChanges",(function(){return Qo})),n.d(t,"findDangerousChanges",(function(){return Yo}));const r="16.5.0",i=Object.freeze({major:16,minor:5,patch:0,preReleaseTag:null});function o(e,t){if(!Boolean(e))throw new Error(t)}function a(e){return"function"==typeof(null==e?void 0:e.then)}function s(e){return"object"==typeof e&&null!==e}function l(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const u=/\r\n|[\n\r]/g;function c(e,t){let n=0,r=1;for(const i of e.body.matchAll(u)){if("number"==typeof i.index||l(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function d(e){return f(e.source,c(e.source,e.start))}function f(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,l=t.column+s,u=`${e.name}:${a}:${l}\n`,c=r.split(/\r\n|[\n\r]/g),d=c[i];if(d.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return u+p([[a+" |",n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return u+p([[a-1+" |",c[i-1]],[a+" |",d],["|","^".padStart(l)],[a+1+" |",c[i+1]]])}function p(e){const t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class h extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:a,positions:l,path:u,originalError:d,extensions:f}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=d?d:void 0,this.nodes=m(Array.isArray(o)?o:o?[o]:void 0);const p=m(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==p||null===(r=p[0])||void 0===r?void 0:r.source,this.positions=null!=l?l:null==p?void 0:p.map(e=>e.start),this.locations=l&&a?l.map(e=>c(a,e)):null==p?void 0:p.map(e=>c(e.source,e.start));const g=s(null==d?void 0:d.extensions)?null==d?void 0:d.extensions:void 0;this.extensions=null!==(i=null!=f?f:g)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,h):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+d(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+f(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function m(e){return void 0===e||0===e.length?void 0:e}function g(e){return e.toString()}function v(e){return e.toJSON()}function y(e,t,n){return new h("Syntax Error: "+n,{source:e,positions:[t]})}class b{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class E{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const T={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},w=new Set(Object.keys(T));function C(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&w.has(t)}let x,S,N,k;function _(e){return 9===e||32===e}function O(e){return e>=48&&e<=57}function I(e){return e>=97&&e<=122||e>=65&&e<=90}function L(e){return I(e)||95===e}function A(e){return I(e)||O(e)||95===e}function D(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let t=0;t<e.length;++t){var o;const a=e[t],s=M(a);s!==a.length&&(r=null!==(o=r)&&void 0!==o?o:t,i=t,0!==t&&s<n&&(n=s))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function M(e){let t=0;for(;t<e.length&&_(e.charCodeAt(t));)++t;return t}function R(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!t&&(!r||!i)}function F(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every(e=>0===e.length||_(e.charCodeAt(0))),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,l=e.endsWith("\\"),u=s||l,c=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||a);let d="";const f=i&&_(e.charCodeAt(0));return(c&&!f||o)&&(d+="\n"),d+=n,(c||u)&&(d+="\n"),'"""'+d+'"""'}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(x||(x={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(S||(S={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(N||(N={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(k||(k={}));class P{constructor(e){const t=new E(k.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==k.EOF)do{if(e.next)e=e.next;else{const t=G(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===k.COMMENT);return e}}function j(e){return e===k.BANG||e===k.DOLLAR||e===k.AMP||e===k.PAREN_L||e===k.PAREN_R||e===k.SPREAD||e===k.COLON||e===k.EQUALS||e===k.AT||e===k.BRACKET_L||e===k.BRACKET_R||e===k.BRACE_L||e===k.PIPE||e===k.BRACE_R}function V(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function U(e,t){return B(e.charCodeAt(t))&&$(e.charCodeAt(t+1))}function B(e){return e>=55296&&e<=56319}function $(e){return e>=56320&&e<=57343}function q(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return k.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function H(e,t,n,r,i){const o=e.line,a=1+n-e.lineStart;return new E(t,n,r,o,a,i)}function G(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return W(e,i);case 33:return H(e,k.BANG,i,i+1);case 36:return H(e,k.DOLLAR,i,i+1);case 38:return H(e,k.AMP,i,i+1);case 40:return H(e,k.PAREN_L,i,i+1);case 41:return H(e,k.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return H(e,k.SPREAD,i,i+3);break;case 58:return H(e,k.COLON,i,i+1);case 61:return H(e,k.EQUALS,i,i+1);case 64:return H(e,k.AT,i,i+1);case 91:return H(e,k.BRACKET_L,i,i+1);case 93:return H(e,k.BRACKET_R,i,i+1);case 123:return H(e,k.BRACE_L,i,i+1);case 124:return H(e,k.PIPE,i,i+1);case 125:return H(e,k.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?te(e,i):Q(e,i)}if(O(t)||45===t)return z(e,i,t);if(L(t))return ne(e,i);throw y(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":V(t)||U(n,i)?`Unexpected character: ${q(e,i)}.`:`Invalid character: ${q(e,i)}.`)}return H(e,k.EOF,r,r)}function W(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(V(e))++i;else{if(!U(n,i))break;i+=2}}return H(e,k.COMMENT,t,i,n.slice(t+1,i))}function z(e,t,n){const r=e.source.body;let i=t,o=n,a=!1;if(45===o&&(o=r.charCodeAt(++i)),48===o){if(o=r.charCodeAt(++i),O(o))throw y(e.source,i,`Invalid number, unexpected digit after 0: ${q(e,i)}.`)}else i=K(e,i,o),o=r.charCodeAt(i);if(46===o&&(a=!0,o=r.charCodeAt(++i),i=K(e,i,o),o=r.charCodeAt(i)),69!==o&&101!==o||(a=!0,o=r.charCodeAt(++i),43!==o&&45!==o||(o=r.charCodeAt(++i)),i=K(e,i,o),o=r.charCodeAt(i)),46===o||L(o))throw y(e.source,i,`Invalid number, expected digit but got: ${q(e,i)}.`);return H(e,a?k.FLOAT:k.INT,t,i,r.slice(t,i))}function K(e,t,n){if(!O(n))throw y(e.source,t,`Invalid number, expected digit but got: ${q(e,t)}.`);const r=e.source.body;let i=t+1;for(;O(r.charCodeAt(i));)++i;return i}function Q(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,a="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return a+=n.slice(o,i),H(e,k.STRING,t,i+1,a);if(92!==r){if(10===r||13===r)break;if(V(r))++i;else{if(!U(n,i))throw y(e.source,i,`Invalid character within String: ${q(e,i)}.`);i+=2}}else{a+=n.slice(o,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?Y(e,i):J(e,i):ee(e,i);a+=t.value,i+=t.size,o=i}}throw y(e.source,i,"Unterminated string.")}function Y(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!V(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|Z(e),r<0)break}throw y(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function J(e,t){const n=e.source.body,r=X(n,t+2);if(V(r))return{value:String.fromCodePoint(r),size:6};if(B(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=X(n,t+8);if($(e))return{value:String.fromCodePoint(r,e),size:12}}throw y(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function X(e,t){return Z(e.charCodeAt(t))<<12|Z(e.charCodeAt(t+1))<<8|Z(e.charCodeAt(t+2))<<4|Z(e.charCodeAt(t+3))}function Z(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function ee(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw y(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function te(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,a=o,s="";const l=[];for(;o<r;){const r=n.charCodeAt(o);if(34===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)){s+=n.slice(a,o),l.push(s);const r=H(e,k.BLOCK_STRING,t,o+3,D(l).join("\n"));return e.line+=l.length-1,e.lineStart=i,r}if(92!==r||34!==n.charCodeAt(o+1)||34!==n.charCodeAt(o+2)||34!==n.charCodeAt(o+3))if(10!==r&&13!==r)if(V(r))++o;else{if(!U(n,o))throw y(e.source,o,`Invalid character within String: ${q(e,o)}.`);o+=2}else s+=n.slice(a,o),l.push(s),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,s="",a=o,i=o;else s+=n.slice(a,o),a=o+1,o+=4}throw y(e.source,o,"Unterminated string.")}function ne(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){if(!A(n.charCodeAt(i)))break;++i}return H(e,k.NAME,t,i,n.slice(t,i))}function re(e){return ie(e,[])}function ie(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:ie(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,i=[];for(let r=0;r<n;++r)i.push(ie(e[r],t));1===r?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`);return"["+i.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";return"{ "+n.map(([e,n])=>e+": "+ie(n,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const oe=function(e,t){return e instanceof t};class ae{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||o(!1,`Body must be a string. Received: ${re(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||o(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||o(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function se(e){return oe(e,ae)}function le(e,t){return new fe(e,t).parseDocument()}function ue(e,t){const n=new fe(e,t);n.expectToken(k.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(k.EOF),r}function ce(e,t){const n=new fe(e,t);n.expectToken(k.SOF);const r=n.parseConstValueLiteral();return n.expectToken(k.EOF),r}function de(e,t){const n=new fe(e,t);n.expectToken(k.SOF);const r=n.parseTypeReference();return n.expectToken(k.EOF),r}class fe{constructor(e,t){const n=se(e)?e:new ae(e);this._lexer=new P(n),this._options=t}parseName(){const e=this.expectToken(k.NAME);return this.node(e,{kind:N.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:N.DOCUMENT,definitions:this.many(k.SOF,this.parseDefinition,k.EOF)})}parseDefinition(){if(this.peek(k.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===k.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw y(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(k.BRACE_L))return this.node(e,{kind:N.OPERATION_DEFINITION,operation:x.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(k.NAME)&&(n=this.parseName()),this.node(e,{kind:N.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(k.NAME);switch(e.value){case"query":return x.QUERY;case"mutation":return x.MUTATION;case"subscription":return x.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(k.PAREN_L,this.parseVariableDefinition,k.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:N.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(k.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(k.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(k.DOLLAR),this.node(e,{kind:N.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:N.SELECTION_SET,selections:this.many(k.BRACE_L,this.parseSelection,k.BRACE_R)})}parseSelection(){return this.peek(k.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(k.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:N.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(k.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(k.PAREN_L,t,k.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(k.COLON),this.node(t,{kind:N.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(k.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(k.NAME)?this.node(e,{kind:N.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:N.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var e;const t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacyFragmentVariables)?this.node(t,{kind:N.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:N.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case k.BRACKET_L:return this.parseList(e);case k.BRACE_L:return this.parseObject(e);case k.INT:return this._lexer.advance(),this.node(t,{kind:N.INT,value:t.value});case k.FLOAT:return this._lexer.advance(),this.node(t,{kind:N.FLOAT,value:t.value});case k.STRING:case k.BLOCK_STRING:return this.parseStringLiteral();case k.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:N.BOOLEAN,value:!0});case"false":return this.node(t,{kind:N.BOOLEAN,value:!1});case"null":return this.node(t,{kind:N.NULL});default:return this.node(t,{kind:N.ENUM,value:t.value})}case k.DOLLAR:if(e){if(this.expectToken(k.DOLLAR),this._lexer.token.kind===k.NAME){const e=this._lexer.token.value;throw y(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this._lexer.advance(),this.node(e,{kind:N.STRING,value:e.value,block:e.kind===k.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:N.LIST,values:this.any(k.BRACKET_L,()=>this.parseValueLiteral(e),k.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:N.OBJECT,fields:this.any(k.BRACE_L,()=>this.parseObjectField(e),k.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(k.COLON),this.node(t,{kind:N.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(k.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(k.AT),this.node(t,{kind:N.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(k.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(k.BRACKET_R),t=this.node(e,{kind:N.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(k.BANG)?this.node(e,{kind:N.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:N.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(k.STRING)||this.peek(k.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(k.BRACE_L,this.parseOperationTypeDefinition,k.BRACE_R);return this.node(e,{kind:N.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(k.COLON);const n=this.parseNamedType();return this.node(e,{kind:N.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:N.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:N.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(k.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(k.BRACE_L,this.parseFieldDefinition,k.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(k.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:N.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(k.PAREN_L,this.parseInputValueDef,k.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(k.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(k.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:N.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:N.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:N.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(k.EQUALS)?this.delimitedMany(k.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:N.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(k.BRACE_L,this.parseEnumValueDefinition,k.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:N.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw y(this._lexer.source,this._lexer.token.start,pe(this._lexer.token)+" is reserved and cannot be used for an enum value.");return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:N.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(k.BRACE_L,this.parseInputValueDef,k.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===k.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(k.BRACE_L,this.parseOperationTypeDefinition,k.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:N.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:N.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:N.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:N.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:N.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:N.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:N.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(k.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:N.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(k.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(S,t.value))return t;throw this.unexpected(e)}node(e,t){var n;return!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation)&&(t.loc=new b(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw y(this._lexer.source,t.start,`Expected ${he(e)}, found ${pe(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this._lexer.advance(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==k.NAME||t.value!==e)throw y(this._lexer.source,t.start,`Expected "${e}", found ${pe(t)}.`);this._lexer.advance()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===k.NAME&&t.value===e&&(this._lexer.advance(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return y(this._lexer.source,t.start,`Unexpected ${pe(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}}function pe(e){const t=e.value;return he(e.kind)+(null!=t?` "${t}"`:"")}function he(e){return j(e)?`"${e}"`:e}function me(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}function ge(e){return e}function ve(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function ye(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}function be(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function Ee(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(we(i)&&we(o)){let a=0;do{++n,a=10*a+i-Te,i=e.charCodeAt(n)}while(we(i)&&a>0);let s=0;do{++r,s=10*s+o-Te,o=t.charCodeAt(r)}while(we(o)&&s>0);if(a<s)return-1;if(a>s)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}const Te=48;function we(e){return!isNaN(e)&&Te<=e&&e<=57}function Ce(e,t){const n=Object.create(null),r=new xe(e),i=Math.floor(.4*e.length)+1;for(const e of t){const t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{const r=n[e]-n[t];return 0!==r?r:Ee(e,t)})}class xe{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=Se(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=Se(n),i=this._inputArray;if(r.length<i.length){const e=r;r=i,i=e}const o=r.length,a=i.length;if(o-a>t)return;const s=this._rows;for(let e=0;e<=a;e++)s[0][e]=e;for(let e=1;e<=o;e++){const n=s[(e-1)%3],o=s[e%3];let l=o[0]=e;for(let t=1;t<=a;t++){const a=r[e-1]===i[t-1]?0:1;let u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+a);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=s[(e-2)%3][t-2];u=Math.min(u,n+1)}u<l&&(l=u),o[t]=u}if(l>t)return}const l=s[o%3][a];return l<=t?l:void 0}}function Se(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function Ne(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}const ke=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function _e(e){return Oe[e.charCodeAt(0)]}const Oe=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Ie=Object.freeze({});function Le(e,t,n=T){const r=new Map;for(const e of Object.values(N))r.set(e,De(t,e));let i=void 0,a=Array.isArray(e),s=[e],l=-1,u=[],c=e,d=void 0,f=void 0;const p=[],h=[];do{l++;const e=l===s.length,y=e&&0!==u.length;if(e){if(d=0===h.length?void 0:p[p.length-1],c=f,f=h.pop(),y)if(a){c=c.slice();let e=0;for(const[t,n]of u){const r=t-e;null===n?(c.splice(r,1),e++):c[r]=n}}else{c=Object.defineProperties({},Object.getOwnPropertyDescriptors(c));for(const[e,t]of u)c[e]=t}l=i.index,s=i.keys,u=i.edits,a=i.inArray,i=i.prev}else if(f){if(d=a?l:s[l],c=f[d],null==c)continue;p.push(d)}let b;if(!Array.isArray(c)){var m,g;C(c)||o(!1,`Invalid AST Node: ${re(c)}.`);const n=e?null===(m=r.get(c.kind))||void 0===m?void 0:m.leave:null===(g=r.get(c.kind))||void 0===g?void 0:g.enter;if(b=null==n?void 0:n.call(t,c,d,f,p,h),b===Ie)break;if(!1===b){if(!e){p.pop();continue}}else if(void 0!==b&&(u.push([d,b]),!e)){if(!C(b)){p.pop();continue}c=b}}var v;if(void 0===b&&y&&u.push([d,c]),e)p.pop();else i={inArray:a,index:l,keys:s,edits:u,prev:i},a=Array.isArray(c),s=a?c:null!==(v=n[c.kind])&&void 0!==v?v:[],l=-1,u=[],f&&h.push(f),f=c}while(void 0!==i);return 0!==u.length?u[u.length-1][1]:e}function Ae(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(N)){let i=!1;const o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:n,leave:s}=De(e[t],r);i||(i=null!=n||null!=s),o[t]=n,a[t]=s}if(!i)continue;const s={enter(...n){const r=n[0];for(let a=0;a<e.length;a++)if(null===t[a]){var i;const s=null===(i=o[a])||void 0===i?void 0:i.apply(e[a],n);if(!1===s)t[a]=r;else if(s===Ie)t[a]=Ie;else if(void 0!==s)return s}},leave(...n){const r=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;const r=null===(i=a[o])||void 0===i?void 0:i.apply(e[o],n);if(r===Ie)t[o]=Ie;else if(void 0!==r&&!1!==r)return r}else t[o]===r&&(t[o]=null)}};n[r]=s}return n}function De(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Me(e,t,n){const{enter:r,leave:i}=De(e,t);return n?i:r}function Re(e){return Le(e,Fe)}const Fe={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Pe(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Ve("(",Pe(e.variableDefinitions,", "),")"),n=Pe([e.operation,Pe([e.name,t]),Pe(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Ve(" = ",n)+Ve(" ",Pe(r," "))},SelectionSet:{leave:({selections:e})=>je(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Ve("",e,": ")+t;let a=o+Ve("(",Pe(n,", "),")");return a.length>80&&(a=o+Ve("(\n",Ue(Pe(n,"\n")),"\n)")),Pe([a,Pe(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Ve(" ",Pe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Pe(["...",Ve("on ",e),Pe(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Ve("(",Pe(n,", "),")")} on ${t} ${Ve("",Pe(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?F(e):`"${e.replace(ke,_e)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Pe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Pe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Ve("(",Pe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Ve("",e,"\n")+Pe(["schema",Pe(t," "),je(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Ve("",e,"\n")+Pe(["scalar",t,Pe(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Ve("",e,"\n")+Pe(["type",t,Ve("implements ",Pe(n," & ")),Pe(r," "),je(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Ve("",e,"\n")+t+(Be(n)?Ve("(\n",Ue(Pe(n,"\n")),"\n)"):Ve("(",Pe(n,", "),")"))+": "+r+Ve(" ",Pe(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Ve("",e,"\n")+Pe([t+": "+n,Ve("= ",r),Pe(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Ve("",e,"\n")+Pe(["interface",t,Ve("implements ",Pe(n," & ")),Pe(r," "),je(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Ve("",e,"\n")+Pe(["union",t,Pe(n," "),Ve("= ",Pe(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Ve("",e,"\n")+Pe(["enum",t,Pe(n," "),je(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Ve("",e,"\n")+Pe([t,Pe(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Ve("",e,"\n")+Pe(["input",t,Pe(n," "),je(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Ve("",e,"\n")+"directive @"+t+(Be(n)?Ve("(\n",Ue(Pe(n,"\n")),"\n)"):Ve("(",Pe(n,", "),")"))+(r?" repeatable":"")+" on "+Pe(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Pe(["extend schema",Pe(e," "),je(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Pe(["extend scalar",e,Pe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Pe(["extend type",e,Ve("implements ",Pe(t," & ")),Pe(n," "),je(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Pe(["extend interface",e,Ve("implements ",Pe(t," & ")),Pe(n," "),je(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Pe(["extend union",e,Pe(t," "),Ve("= ",Pe(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Pe(["extend enum",e,Pe(t," "),je(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Pe(["extend input",e,Pe(t," "),je(n)]," ")}};function Pe(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function je(e){return Ve("{\n",Ue(Pe(e,"\n")),"\n}")}function Ve(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Ue(e){return Ve("  ",e.replace(/\n/g,"\n  "))}function Be(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}function $e(e,t){switch(e.kind){case N.NULL:return null;case N.INT:return parseInt(e.value,10);case N.FLOAT:return parseFloat(e.value);case N.STRING:case N.ENUM:case N.BOOLEAN:return e.value;case N.LIST:return e.values.map(e=>$e(e,t));case N.OBJECT:return ye(e.fields,e=>e.name.value,e=>$e(e.value,t));case N.VARIABLE:return null==t?void 0:t[e.name.value]}}function qe(e){if(null!=e||o(!1,"Must provide name."),"string"==typeof e||o(!1,"Expected name to be a string."),0===e.length)throw new h("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!A(e.charCodeAt(t)))throw new h(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!L(e.charCodeAt(0)))throw new h(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function He(e){if("true"===e||"false"===e||"null"===e)throw new h("Enum values cannot be named: "+e);return qe(e)}function Ge(e){return ze(e)||Qe(e)||Je(e)||Ze(e)||tt(e)||rt(e)||ot(e)||st(e)}function We(e){if(!Ge(e))throw new Error(`Expected ${re(e)} to be a GraphQL type.`);return e}function ze(e){return oe(e,Lt)}function Ke(e){if(!ze(e))throw new Error(`Expected ${re(e)} to be a GraphQL Scalar type.`);return e}function Qe(e){return oe(e,At)}function Ye(e){if(!Qe(e))throw new Error(`Expected ${re(e)} to be a GraphQL Object type.`);return e}function Je(e){return oe(e,Ut)}function Xe(e){if(!Je(e))throw new Error(`Expected ${re(e)} to be a GraphQL Interface type.`);return e}function Ze(e){return oe(e,Bt)}function et(e){if(!Ze(e))throw new Error(`Expected ${re(e)} to be a GraphQL Union type.`);return e}function tt(e){return oe(e,qt)}function nt(e){if(!tt(e))throw new Error(`Expected ${re(e)} to be a GraphQL Enum type.`);return e}function rt(e){return oe(e,Gt)}function it(e){if(!rt(e))throw new Error(`Expected ${re(e)} to be a GraphQL Input Object type.`);return e}function ot(e){return oe(e,bt)}function at(e){if(!ot(e))throw new Error(`Expected ${re(e)} to be a GraphQL List type.`);return e}function st(e){return oe(e,Et)}function lt(e){if(!st(e))throw new Error(`Expected ${re(e)} to be a GraphQL Non-Null type.`);return e}function ut(e){return ze(e)||tt(e)||rt(e)||Tt(e)&&ut(e.ofType)}function ct(e){if(!ut(e))throw new Error(`Expected ${re(e)} to be a GraphQL input type.`);return e}function dt(e){return ze(e)||Qe(e)||Je(e)||Ze(e)||tt(e)||Tt(e)&&dt(e.ofType)}function ft(e){if(!dt(e))throw new Error(`Expected ${re(e)} to be a GraphQL output type.`);return e}function pt(e){return ze(e)||tt(e)}function ht(e){if(!pt(e))throw new Error(`Expected ${re(e)} to be a GraphQL leaf type.`);return e}function mt(e){return Qe(e)||Je(e)||Ze(e)}function gt(e){if(!mt(e))throw new Error(`Expected ${re(e)} to be a GraphQL composite type.`);return e}function vt(e){return Je(e)||Ze(e)}function yt(e){if(!vt(e))throw new Error(`Expected ${re(e)} to be a GraphQL abstract type.`);return e}class bt{constructor(e){Ge(e)||o(!1,`Expected ${re(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class Et{constructor(e){Ct(e)||o(!1,`Expected ${re(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function Tt(e){return ot(e)||st(e)}function wt(e){if(!Tt(e))throw new Error(`Expected ${re(e)} to be a GraphQL wrapping type.`);return e}function Ct(e){return Ge(e)&&!st(e)}function xt(e){if(!Ct(e))throw new Error(`Expected ${re(e)} to be a GraphQL nullable type.`);return e}function St(e){if(e)return st(e)?e.ofType:e}function Nt(e){return ze(e)||Qe(e)||Je(e)||Ze(e)||tt(e)||rt(e)}function kt(e){if(!Nt(e))throw new Error(`Expected ${re(e)} to be a GraphQL named type.`);return e}function _t(e){if(e){let t=e;for(;Tt(t);)t=t.ofType;return t}}function Ot(e){return"function"==typeof e?e():e}function It(e){return"function"==typeof e?e():e}class Lt{constructor(e){var t,n,r,i;const a=null!==(t=e.parseValue)&&void 0!==t?t:ge;this.name=qe(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:ge,this.parseValue=a,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:(e,t)=>a($e(e,t)),this.extensions=Ne(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(i=e.extensionASTNodes)&&void 0!==i?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||o(!1,this.name+' must provide "specifiedByURL" as a string, '+`but got: ${re(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||o(!1,this.name+' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.'),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||o(!1,this.name+' must provide both "parseValue" and "parseLiteral" functions.'))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class At{constructor(e){var t;this.name=qe(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=Ne(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>Mt(e),this._interfaces=()=>Dt(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||o(!1,this.name+' must provide "isTypeOf" as a function, '+`but got: ${re(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Pt(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Dt(e){var t;const n=Ot(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||o(!1,e.name+" interfaces must be an Array or a function which returns an Array."),n}function Mt(e){const t=It(e.fields);return Ft(t)||o(!1,e.name+" fields must be an object with field names as keys or a function which returns such an object."),be(t,(t,n)=>{var r;Ft(t)||o(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||o(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${re(t.resolve)}.`);const i=null!==(r=t.args)&&void 0!==r?r:{};return Ft(i)||o(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:qe(n),description:t.description,type:t.type,args:Rt(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:Ne(t.extensions),astNode:t.astNode}})}function Rt(e){return Object.entries(e).map(([e,t])=>({name:qe(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:Ne(t.extensions),astNode:t.astNode}))}function Ft(e){return s(e)&&!Array.isArray(e)}function Pt(e){return be(e,e=>({description:e.description,type:e.type,args:jt(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function jt(e){return ye(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function Vt(e){return st(e.type)&&void 0===e.defaultValue}class Ut{constructor(e){var t;this.name=qe(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Ne(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Mt.bind(void 0,e),this._interfaces=Dt.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||o(!1,this.name+' must provide "resolveType" as a function, '+`but got: ${re(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Pt(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Bt{constructor(e){var t;this.name=qe(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Ne(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=$t.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||o(!1,this.name+' must provide "resolveType" as a function, '+`but got: ${re(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function $t(e){const t=Ot(e.types);return Array.isArray(t)||o(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class qt{constructor(e){var t,n,r;this.name=qe(e.name),this.description=e.description,this.extensions=Ne(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=(n=this.name,Ft(r=e.values)||o(!1,n+" values must be an object with value names as keys."),Object.entries(r).map(([e,t])=>(Ft(t)||o(!1,`${n}.${e} must refer to an object with a "value" key representing an internal value but got: ${re(t)}.`),{name:He(e),description:t.description,value:void 0!==t.value?t.value:e,deprecationReason:t.deprecationReason,extensions:Ne(t.extensions),astNode:t.astNode}))),this._valueLookup=new Map(this._values.map(e=>[e.value,e])),this._nameLookup=ve(this._values,e=>e.name)}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new h(`Enum "${this.name}" cannot represent value: ${re(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=re(e);throw new h(`Enum "${this.name}" cannot represent non-string value: ${t}.`+Ht(this,t))}const t=this.getValue(e);if(null==t)throw new h(`Value "${e}" does not exist in "${this.name}" enum.`+Ht(this,e));return t.value}parseLiteral(e,t){if(e.kind!==N.ENUM){const t=Re(e);throw new h(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+Ht(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=Re(e);throw new h(`Value "${t}" does not exist in "${this.name}" enum.`+Ht(this,t),{nodes:e})}return n.value}toConfig(){const e=ye(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ht(e,t){return me("the enum value",Ce(t,e.getValues().map(e=>e.name)))}class Gt{constructor(e){var t;this.name=qe(e.name),this.description=e.description,this.extensions=Ne(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Wt.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=be(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Wt(e){const t=It(e.fields);return Ft(t)||o(!1,e.name+" fields must be an object with field names as keys or a function which returns such an object."),be(t,(t,n)=>(!("resolve"in t)||o(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:qe(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:Ne(t.extensions),astNode:t.astNode}))}function zt(e){return st(e.type)&&void 0===e.defaultValue}function Kt(e,t){return e===t||(st(e)&&st(t)||!(!ot(e)||!ot(t)))&&Kt(e.ofType,t.ofType)}function Qt(e,t,n){return t===n||(st(n)?!!st(t)&&Qt(e,t.ofType,n.ofType):st(t)?Qt(e,t.ofType,n):ot(n)?!!ot(t)&&Qt(e,t.ofType,n.ofType):!ot(t)&&(vt(n)&&(Je(t)||Qe(t))&&e.isSubType(n,t)))}function Yt(e,t,n){return t===n||(vt(t)?vt(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!vt(n)&&e.isSubType(n,t))}const Jt=2147483647,Xt=-2147483648,Zt=new Lt({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=sn(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new h("Int cannot represent non-integer value: "+re(t));if(n>Jt||n<Xt)throw new h("Int cannot represent non 32-bit signed integer value: "+re(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new h("Int cannot represent non-integer value: "+re(e));if(e>Jt||e<Xt)throw new h("Int cannot represent non 32-bit signed integer value: "+e);return e},parseLiteral(e){if(e.kind!==N.INT)throw new h("Int cannot represent non-integer value: "+Re(e),{nodes:e});const t=parseInt(e.value,10);if(t>Jt||t<Xt)throw new h("Int cannot represent non 32-bit signed integer value: "+e.value,{nodes:e});return t}}),en=new Lt({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=sn(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new h("Float cannot represent non numeric value: "+re(t));return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new h("Float cannot represent non numeric value: "+re(e));return e},parseLiteral(e){if(e.kind!==N.FLOAT&&e.kind!==N.INT)throw new h("Float cannot represent non numeric value: "+Re(e),e);return parseFloat(e.value)}}),tn=new Lt({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=sn(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new h("String cannot represent value: "+re(e))},parseValue(e){if("string"!=typeof e)throw new h("String cannot represent a non string value: "+re(e));return e},parseLiteral(e){if(e.kind!==N.STRING)throw new h("String cannot represent a non string value: "+Re(e),{nodes:e});return e.value}}),nn=new Lt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=sn(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new h("Boolean cannot represent a non boolean value: "+re(t))},parseValue(e){if("boolean"!=typeof e)throw new h("Boolean cannot represent a non boolean value: "+re(e));return e},parseLiteral(e){if(e.kind!==N.BOOLEAN)throw new h("Boolean cannot represent a non boolean value: "+Re(e),{nodes:e});return e.value}}),rn=new Lt({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=sn(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new h("ID cannot represent value: "+re(e))},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new h("ID cannot represent value: "+re(e))},parseLiteral(e){if(e.kind!==N.STRING&&e.kind!==N.INT)throw new h("ID cannot represent a non-string and non-integer value: "+Re(e),{nodes:e});return e.value}}),on=Object.freeze([tn,Zt,en,nn,rn]);function an(e){return on.some(({name:t})=>e.name===t)}function sn(e){if(s(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!s(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function ln(e){return oe(e,cn)}function un(e){if(!ln(e))throw new Error(`Expected ${re(e)} to be a GraphQL directive.`);return e}class cn{constructor(e){var t,n;this.name=qe(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=Ne(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||o(!1,`@${e.name} locations must be an Array.`);const r=null!==(n=e.args)&&void 0!==n?n:{};s(r)&&!Array.isArray(r)||o(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=Rt(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:jt(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const dn=new cn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[S.FIELD,S.FRAGMENT_SPREAD,S.INLINE_FRAGMENT],args:{if:{type:new Et(nn),description:"Included when true."}}}),fn=new cn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[S.FIELD,S.FRAGMENT_SPREAD,S.INLINE_FRAGMENT],args:{if:{type:new Et(nn),description:"Skipped when true."}}}),pn="No longer supported",hn=new cn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[S.FIELD_DEFINITION,S.ARGUMENT_DEFINITION,S.INPUT_FIELD_DEFINITION,S.ENUM_VALUE],args:{reason:{type:tn,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:pn}}}),mn=new cn({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[S.SCALAR],args:{url:{type:new Et(tn),description:"The URL that specifies the behavior of this scalar."}}}),gn=Object.freeze([dn,fn,hn,mn]);function vn(e){return gn.some(({name:t})=>t===e.name)}function yn(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function bn(e,t){if(st(t)){const n=bn(e,t.ofType);return(null==n?void 0:n.kind)===N.NULL?null:n}if(null===e)return{kind:N.NULL};if(void 0===e)return null;if(ot(t)){const n=t.ofType;if(yn(e)){const t=[];for(const r of e){const e=bn(r,n);null!=e&&t.push(e)}return{kind:N.LIST,values:t}}return bn(e,n)}if(rt(t)){if(!s(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=bn(e[r.name],r.type);t&&n.push({kind:N.OBJECT_FIELD,name:{kind:N.NAME,value:r.name},value:t})}return{kind:N.OBJECT,fields:n}}if(pt(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:N.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return En.test(e)?{kind:N.INT,value:e}:{kind:N.FLOAT,value:e}}if("string"==typeof n)return tt(t)?{kind:N.ENUM,value:n}:t===rn&&En.test(n)?{kind:N.INT,value:n}:{kind:N.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${re(n)}.`)}l(!1,"Unexpected input type: "+re(t))}const En=/^-?(?:0|[1-9][0-9]*)$/,Tn=new At({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:tn,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Et(new bt(new Et(xn))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new Et(xn),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:xn,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:xn,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Et(new bt(new Et(wn))),resolve:e=>e.getDirectives()}})}),wn=new At({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new Et(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},isRepeatable:{type:new Et(nn),resolve:e=>e.isRepeatable},locations:{type:new Et(new bt(new Et(Cn))),resolve:e=>e.locations},args:{type:new Et(new bt(new Et(Nn))),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),Cn=new qt({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:S.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:S.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:S.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:S.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:S.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:S.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:S.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:S.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:S.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:S.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:S.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:S.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:S.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:S.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:S.UNION,description:"Location adjacent to a union definition."},ENUM:{value:S.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:S.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:S.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:S.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),xn=new At({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Et(On),resolve:e=>ze(e)?_n.SCALAR:Qe(e)?_n.OBJECT:Je(e)?_n.INTERFACE:Ze(e)?_n.UNION:tt(e)?_n.ENUM:rt(e)?_n.INPUT_OBJECT:ot(e)?_n.LIST:st(e)?_n.NON_NULL:void l(!1,`Unexpected type: "${re(e)}".`)},name:{type:tn,resolve:e=>"name"in e?e.name:void 0},description:{type:tn,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:tn,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new bt(new Et(Sn)),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Qe(e)||Je(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new bt(new Et(xn)),resolve(e){if(Qe(e)||Je(e))return e.getInterfaces()}},possibleTypes:{type:new bt(new Et(xn)),resolve(e,t,n,{schema:r}){if(vt(e))return r.getPossibleTypes(e)}},enumValues:{type:new bt(new Et(kn)),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(tt(e)){const n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new bt(new Et(Nn)),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(rt(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:xn,resolve:e=>"ofType"in e?e.ofType:void 0}})}),Sn=new At({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Et(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},args:{type:new Et(new bt(new Et(Nn))),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new Et(xn),resolve:e=>e.type},isDeprecated:{type:new Et(nn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tn,resolve:e=>e.deprecationReason}})}),Nn=new At({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Et(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},type:{type:new Et(xn),resolve:e=>e.type},defaultValue:{type:tn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=bn(n,t);return r?Re(r):null}},isDeprecated:{type:new Et(nn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tn,resolve:e=>e.deprecationReason}})}),kn=new At({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Et(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},isDeprecated:{type:new Et(nn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tn,resolve:e=>e.deprecationReason}})});let _n;!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(_n||(_n={}));const On=new qt({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:_n.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:_n.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:_n.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:_n.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:_n.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:_n.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:_n.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:_n.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),In={name:"__schema",type:new Et(Tn),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Ln={name:"__type",type:xn,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Et(tn),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},An={name:"__typename",type:new Et(tn),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Dn=Object.freeze([Tn,wn,Cn,xn,Sn,Nn,kn,On]);function Mn(e){return Dn.some(({name:t})=>e.name===t)}function Rn(e){return oe(e,Pn)}function Fn(e){if(!Rn(e))throw new Error(`Expected ${re(e)} to be a GraphQL schema.`);return e}class Pn{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,s(e)||o(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||o(!1,`"types" must be Array if provided but got: ${re(e.types)}.`),!e.directives||Array.isArray(e.directives)||o(!1,'"directives" must be Array if provided but got: '+re(e.directives)+"."),this.description=e.description,this.extensions=Ne(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:gn;const r=new Set(e.types);if(null!=e.types)for(const t of e.types)r.delete(t),jn(t,r);null!=this._queryType&&jn(this._queryType,r),null!=this._mutationType&&jn(this._mutationType,r),null!=this._subscriptionType&&jn(this._subscriptionType,r);for(const e of this._directives)if(ln(e))for(const t of e.args)jn(t.type,r);jn(Tn,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of r){if(null==e)continue;const t=e.name;if(t||o(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,Je(e)){for(const t of e.getInterfaces())if(Je(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(Qe(e))for(const t of e.getInterfaces())if(Je(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case x.QUERY:return this.getQueryType();case x.MUTATION:return this.getMutationType();case x.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return Ze(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),Ze(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function jn(e,t){const n=_t(e);if(!t.has(n))if(t.add(n),Ze(n))for(const e of n.getTypes())jn(e,t);else if(Qe(n)||Je(n)){for(const e of n.getInterfaces())jn(e,t);for(const e of Object.values(n.getFields())){jn(e.type,t);for(const n of e.args)jn(n.type,t)}}else if(rt(n))for(const e of Object.values(n.getFields()))jn(e.type,t);return t}function Vn(e){if(Fn(e),e.__validationErrors)return e.__validationErrors;const t=new Bn(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!Qe(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${re(n)}.`,null!==(r=$n(t,x.QUERY))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const i=t.getMutationType();var o;i&&!Qe(i)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+re(i)+".",null!==(o=$n(t,x.MUTATION))&&void 0!==o?o:i.astNode);const a=t.getSubscriptionType();var s;a&&!Qe(a)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+re(a)+".",null!==(s=$n(t,x.SUBSCRIPTION))&&void 0!==s?s:a.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if(ln(n)){qn(e,n);for(const r of n.args){var t;if(qn(e,r),ut(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${re(r.type)}.`,r.astNode),Vt(r)&&null!=r.deprecationReason)e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[Zn(r.astNode),null===(t=r.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${re(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const a=Object.values(o.getFields());for(const t of a)if(st(t.type)&&rt(t.type.ofType)){const o=t.type.ofType,a=r[o.name];if(n.push(t),void 0===a)i(o);else{const t=n.slice(a),r=t.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map(e=>e.astNode))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const r of Object.values(n))Nt(r)?(Mn(r)||qn(e,r),Qe(r)||Je(r)?(Hn(e,r),Gn(e,r)):Ze(r)?Kn(e,r):tt(r)?Qn(e,r):rt(r)&&(Yn(e,r),t(r))):e.reportError(`Expected GraphQL named type but got: ${re(r)}.`,r.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}function Un(e){const t=Vn(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}class Bn{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new h(e,{nodes:n}))}getErrors(){return this._errors}}function $n(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]}).find(e=>e.operation===t))||void 0===n?void 0:n.type}function qn(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Hn(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){var r;if(qn(e,a),!dt(a.type))e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${re(a.type)}.`,null===(r=a.astNode)||void 0===r?void 0:r.type);for(const n of a.args){const r=n.name;var i,o;if(qn(e,n),!ut(n.type))e.reportError(`The type of ${t.name}.${a.name}(${r}:) must be Input Type but got: ${re(n.type)}.`,null===(i=n.astNode)||void 0===i?void 0:i.type);if(Vt(n)&&null!=n.deprecationReason)e.reportError(`Required argument ${t.name}.${a.name}(${r}:) cannot be deprecated.`,[Zn(n.astNode),null===(o=n.astNode)||void 0===o?void 0:o.type])}}}function Gn(e,t){const n=Object.create(null);for(const r of t.getInterfaces())Je(r)?t!==r?n[r.name]?e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Jn(t,r)):(n[r.name]=!0,zn(e,t,r),Wn(e,t,r)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Jn(t,r)):e.reportError(`Type ${re(t)} must only implement Interface types, it cannot implement ${re(r)}.`,Jn(t,r))}function Wn(e,t,n){const r=t.getFields();for(const l of Object.values(n.getFields())){const u=l.name,c=r[u];if(c){var i,o;if(!Qt(e.schema,c.type,l.type))e.reportError(`Interface field ${n.name}.${u} expects type ${re(l.type)} but ${t.name}.${u} is type ${re(c.type)}.`,[null===(i=l.astNode)||void 0===i?void 0:i.type,null===(o=c.astNode)||void 0===o?void 0:o.type]);for(const r of l.args){const i=r.name,o=c.args.find(e=>e.name===i);var a,s;if(o){if(!Kt(r.type,o.type))e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expects type ${re(r.type)} but ${t.name}.${u}(${i}:) is type `+re(o.type)+".",[null===(a=r.astNode)||void 0===a?void 0:a.type,null===(s=o.astNode)||void 0===s?void 0:s.type])}else e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expected but ${t.name}.${u} does not provide it.`,[r.astNode,c.astNode])}for(const r of c.args){const i=r.name;!l.args.find(e=>e.name===i)&&Vt(r)&&e.reportError(`Object field ${t.name}.${u} includes required argument ${i} that is missing from the Interface field ${n.name}.${u}.`,[r.astNode,l.astNode])}}else e.reportError(`Interface field ${n.name}.${u} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes])}}function zn(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...Jn(n,i),...Jn(t,n)])}function Kn(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const i of n)r[i.name]?e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,Xn(t,i.name)):(r[i.name]=!0,Qe(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${re(i)}.`,Xn(t,String(i))))}function Qn(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)qn(e,t)}function Yn(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of n){var r,i;if(qn(e,o),!ut(o.type))e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${re(o.type)}.`,null===(r=o.astNode)||void 0===r?void 0:r.type);if(zt(o)&&null!=o.deprecationReason)e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[Zn(o.astNode),null===(i=o.astNode)||void 0===i?void 0:i.type])}}function Jn(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]}).filter(e=>e.name.value===t.name)}function Xn(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]}).filter(e=>e.name.value===t)}function Zn(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find(e=>e.name.value===hn.name)}function er(e,t){switch(t.kind){case N.LIST_TYPE:{const n=er(e,t.type);return n&&new bt(n)}case N.NON_NULL_TYPE:{const n=er(e,t.type);return n&&new Et(n)}case N.NAMED_TYPE:return e.getType(t.name.value)}}class tr{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:nr,t&&(ut(t)&&this._inputTypeStack.push(t),mt(t)&&this._parentTypeStack.push(t),dt(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case N.SELECTION_SET:{const e=_t(this.getType());this._parentTypeStack.push(mt(e)?e:void 0);break}case N.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push(dt(i)?i:void 0);break}case N.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case N.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push(Qe(n)?n:void 0);break}case N.INLINE_FRAGMENT:case N.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?er(t,n):_t(this.getType());this._typeStack.push(dt(r)?r:void 0);break}case N.VARIABLE_DEFINITION:{const n=er(t,e.type);this._inputTypeStack.push(ut(n)?n:void 0);break}case N.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(ut(r)?r:void 0);break}case N.LIST:{const e=St(this.getInputType()),t=ot(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ut(t)?t:void 0);break}case N.OBJECT_FIELD:{const t=_t(this.getInputType());let n,r;rt(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(ut(n)?n:void 0);break}case N.ENUM:{const t=_t(this.getInputType());let n;tt(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case N.SELECTION_SET:this._parentTypeStack.pop();break;case N.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case N.DIRECTIVE:this._directive=null;break;case N.OPERATION_DEFINITION:case N.INLINE_FRAGMENT:case N.FRAGMENT_DEFINITION:this._typeStack.pop();break;case N.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case N.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case N.LIST:case N.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case N.ENUM:this._enumValue=null}}}function nr(e,t,n){const r=n.name.value;return r===In.name&&e.getQueryType()===t?In:r===Ln.name&&e.getQueryType()===t?Ln:r===An.name&&mt(t)?An:Qe(t)||Je(t)?t.getFields()[r]:void 0}function rr(e,t){return{enter(...n){const r=n[0];e.enter(r);const i=De(t,r.kind).enter;if(i){const o=i.apply(t,n);return void 0!==o&&(e.leave(r),C(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=De(t,r.kind).leave;let o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}function ir(e){return or(e)||cr(e)||fr(e)}function or(e){return e.kind===N.OPERATION_DEFINITION||e.kind===N.FRAGMENT_DEFINITION}function ar(e){return e.kind===N.FIELD||e.kind===N.FRAGMENT_SPREAD||e.kind===N.INLINE_FRAGMENT}function sr(e){return e.kind===N.VARIABLE||e.kind===N.INT||e.kind===N.FLOAT||e.kind===N.STRING||e.kind===N.BOOLEAN||e.kind===N.NULL||e.kind===N.ENUM||e.kind===N.LIST||e.kind===N.OBJECT}function lr(e){return sr(e)&&(e.kind===N.LIST?e.values.some(lr):e.kind===N.OBJECT?e.fields.some(e=>lr(e.value)):e.kind!==N.VARIABLE)}function ur(e){return e.kind===N.NAMED_TYPE||e.kind===N.LIST_TYPE||e.kind===N.NON_NULL_TYPE}function cr(e){return e.kind===N.SCHEMA_DEFINITION||dr(e)||e.kind===N.DIRECTIVE_DEFINITION}function dr(e){return e.kind===N.SCALAR_TYPE_DEFINITION||e.kind===N.OBJECT_TYPE_DEFINITION||e.kind===N.INTERFACE_TYPE_DEFINITION||e.kind===N.UNION_TYPE_DEFINITION||e.kind===N.ENUM_TYPE_DEFINITION||e.kind===N.INPUT_OBJECT_TYPE_DEFINITION}function fr(e){return e.kind===N.SCHEMA_EXTENSION||pr(e)}function pr(e){return e.kind===N.SCALAR_TYPE_EXTENSION||e.kind===N.OBJECT_TYPE_EXTENSION||e.kind===N.INTERFACE_TYPE_EXTENSION||e.kind===N.UNION_TYPE_EXTENSION||e.kind===N.ENUM_TYPE_EXTENSION||e.kind===N.INPUT_OBJECT_TYPE_EXTENSION}function hr(e){return{Document(t){for(const n of t.definitions)if(!or(n)){const t=n.kind===N.SCHEMA_DEFINITION||n.kind===N.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new h(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function mr(e){return{Field(t){const n=e.getParentType();if(n){if(!e.getFieldDef()){const r=e.getSchema(),i=t.name.value;let o=me("to use an inline fragment on",function(e,t,n){if(!vt(t))return[];const r=new Set,i=Object.create(null);for(const a of e.getPossibleTypes(t))if(a.getFields()[n]){r.add(a),i[a.name]=1;for(const e of a.getInterfaces()){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!==(o=i[e.name])&&void 0!==o?o:0)+1)}}return[...r].sort((t,n)=>{const r=i[n.name]-i[t.name];return 0!==r?r:Je(t)&&e.isSubType(t,n)?-1:Je(n)&&e.isSubType(n,t)?1:Ee(t.name,n.name)}).map(e=>e.name)}(r,n,i));""===o&&(o=me(function(e,t){if(Qe(e)||Je(e)){const n=Object.keys(e.getFields());return Ce(t,n)}return[]}(n,i))),e.reportError(new h(`Cannot query field "${i}" on type "${n.name}".`+o,{nodes:t}))}}}}}function gr(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=er(e.getSchema(),n);if(t&&!mt(t)){const t=Re(n);e.reportError(new h(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=er(e.getSchema(),t.typeCondition);if(n&&!mt(n)){const n=Re(t.typeCondition);e.reportError(new h(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function vr(e){return{...yr(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const n=t.name.value,o=Ce(n,r.args.map(e=>e.name));e.reportError(new h(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+me(o),{nodes:t}))}}}}function yr(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():gn;for(const e of r)t[e.name]=e.args.map(e=>e.name);const i=e.getDocument().definitions;for(const e of i)if(e.kind===N.DIRECTIVE_DEFINITION){var o;const n=null!==(o=e.arguments)&&void 0!==o?o:[];t[e.name.value]=n.map(e=>e.name.value)}return{Directive(n){const r=n.name.value,i=t[r];if(n.arguments&&i)for(const t of n.arguments){const n=t.name.value;if(!i.includes(n)){const o=Ce(n,i);e.reportError(new h(`Unknown argument "${n}" on directive "@${r}".`+me(o),{nodes:t}))}}return!1}}}function br(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():gn;for(const e of r)t[e.name]=e.locations;const i=e.getDocument().definitions;for(const e of i)e.kind===N.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map(e=>e.value));return{Directive(n,r,i,o,a){const s=n.name.value,u=t[s];if(!u)return void e.reportError(new h(`Unknown directive "@${s}".`,{nodes:n}));const c=function(e){const t=e[e.length-1];switch("kind"in t||l(!1),t.kind){case N.OPERATION_DEFINITION:return function(e){switch(e){case x.QUERY:return S.QUERY;case x.MUTATION:return S.MUTATION;case x.SUBSCRIPTION:return S.SUBSCRIPTION}}(t.operation);case N.FIELD:return S.FIELD;case N.FRAGMENT_SPREAD:return S.FRAGMENT_SPREAD;case N.INLINE_FRAGMENT:return S.INLINE_FRAGMENT;case N.FRAGMENT_DEFINITION:return S.FRAGMENT_DEFINITION;case N.VARIABLE_DEFINITION:return S.VARIABLE_DEFINITION;case N.SCHEMA_DEFINITION:case N.SCHEMA_EXTENSION:return S.SCHEMA;case N.SCALAR_TYPE_DEFINITION:case N.SCALAR_TYPE_EXTENSION:return S.SCALAR;case N.OBJECT_TYPE_DEFINITION:case N.OBJECT_TYPE_EXTENSION:return S.OBJECT;case N.FIELD_DEFINITION:return S.FIELD_DEFINITION;case N.INTERFACE_TYPE_DEFINITION:case N.INTERFACE_TYPE_EXTENSION:return S.INTERFACE;case N.UNION_TYPE_DEFINITION:case N.UNION_TYPE_EXTENSION:return S.UNION;case N.ENUM_TYPE_DEFINITION:case N.ENUM_TYPE_EXTENSION:return S.ENUM;case N.ENUM_VALUE_DEFINITION:return S.ENUM_VALUE;case N.INPUT_OBJECT_TYPE_DEFINITION:case N.INPUT_OBJECT_TYPE_EXTENSION:return S.INPUT_OBJECT;case N.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||l(!1),t.kind===N.INPUT_OBJECT_TYPE_DEFINITION?S.INPUT_FIELD_DEFINITION:S.ARGUMENT_DEFINITION}default:l(!1,"Unexpected kind: "+re(t.kind))}}(a);c&&!u.includes(c)&&e.reportError(new h(`Directive "@${s}" may not be used on ${c}.`,{nodes:n}))}}}function Er(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new h(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function Tr(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const t of e.getDocument().definitions)dr(t)&&(r[t.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,a,s,l){const u=t.name.value;if(!n[u]&&!r[u]){var c;const n=null!==(c=l[2])&&void 0!==c?c:a,r=null!=n&&("kind"in(d=n)&&(cr(d)||fr(d)));if(r&&wr.includes(u))return;const o=Ce(u,r?wr.concat(i):i);e.reportError(new h(`Unknown type "${u}".`+me(o),{nodes:t}))}var d}}}const wr=[...on,...Dn].map(e=>e.name);function Cr(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===N.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new h("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function xr(e){var t,n,r;const i=e.getSchema(),o=null!==(t=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType();let a=0;return{SchemaDefinition(t){o?e.reportError(new h("Cannot define a new schema within a schema extension.",{nodes:t})):(a>0&&e.reportError(new h("Must provide only one schema definition.",{nodes:t})),++a)}}}function Sr(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:i=>(function i(o){if(t[o.name.value])return;const a=o.name.value;t[a]=!0;const s=e.getFragmentSpreads(o.selectionSet);if(0===s.length)return;r[a]=n.length;for(const t of s){const o=t.name.value,a=r[o];if(n.push(t),void 0===a){const t=e.getFragment(o);t&&i(t)}else{const t=n.slice(a),r=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new h(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[a]=void 0}(i),!1)}}function Nr(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i}of r){const r=i.name.value;!0!==t[r]&&e.reportError(new h(n.name?`Variable "$${r}" is not defined by operation "${n.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function kr(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const r=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==r[n]&&e.reportError(new h(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function _r(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(const{node:e}of i)r[e.name.value]=!0;for(const i of t){const t=i.variable.name.value;!0!==r[t]&&e.reportError(new h(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function Or(e){switch(e.kind){case N.OBJECT:return{...e,fields:(t=e.fields,t.map(e=>({...e,value:Or(e.value)})).sort((e,t)=>Ee(e.name.value,t.name.value)))};case N.LIST:return{...e,values:e.values.map(Or)};case N.INT:case N.FLOAT:case N.STRING:case N.BOOLEAN:case N.NULL:case N.ENUM:case N.VARIABLE:return e}var t}function Ir(e){return Array.isArray(e)?e.map(([e,t])=>`subfields "${e}" conflict because `+Ir(t)).join(" and "):e}function Lr(e){const t=new Vr,n=new Map;return{SelectionSet(r){const i=function(e,t,n,r,i){const o=[],[a,s]=Pr(e,t,r,i);if(function(e,t,n,r,i){for(const[o,a]of Object.entries(i))if(a.length>1)for(let i=0;i<a.length;i++)for(let s=i+1;s<a.length;s++){const l=Rr(e,n,r,!1,o,a[i],a[s]);l&&t.push(l)}}(e,o,t,n,a),0!==s.length)for(let r=0;r<s.length;r++){Ar(e,o,t,n,!1,a,s[r]);for(let i=r+1;i<s.length;i++)Dr(e,o,t,n,!1,s[r],s[i])}return o}(e,n,t,e.getParentType(),r);for(const[[t,n],r,o]of i){const i=Ir(n);e.reportError(new h(`Fields "${t}" conflict because ${i}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(o)}))}}}}function Ar(e,t,n,r,i,o,a){const s=e.getFragment(a);if(!s)return;const[l,u]=jr(e,n,s);if(o!==l){Mr(e,t,n,r,i,o,l);for(const s of u)r.has(s,a,i)||(r.add(s,a,i),Ar(e,t,n,r,i,o,s))}}function Dr(e,t,n,r,i,o,a){if(o===a)return;if(r.has(o,a,i))return;r.add(o,a,i);const s=e.getFragment(o),l=e.getFragment(a);if(!s||!l)return;const[u,c]=jr(e,n,s),[d,f]=jr(e,n,l);Mr(e,t,n,r,i,u,d);for(const a of f)Dr(e,t,n,r,i,o,a);for(const o of c)Dr(e,t,n,r,i,o,a)}function Mr(e,t,n,r,i,o,a){for(const[s,l]of Object.entries(o)){const o=a[s];if(o)for(const a of l)for(const l of o){const o=Rr(e,n,r,i,s,a,l);o&&t.push(o)}}}function Rr(e,t,n,r,i,o,a){const[s,l,u]=o,[c,d,f]=a,p=r||s!==c&&Qe(s)&&Qe(c);if(!p){const e=l.name.value,t=d.name.value;if(e!==t)return[[i,`"${e}" and "${t}" are different fields`],[l],[d]];if(Fr(l)!==Fr(d))return[[i,"they have differing arguments"],[l],[d]]}const h=null==u?void 0:u.type,m=null==f?void 0:f.type;if(h&&m&&function e(t,n){if(ot(t))return!ot(n)||e(t.ofType,n.ofType);if(ot(n))return!0;if(st(t))return!st(n)||e(t.ofType,n.ofType);if(st(n))return!0;if(pt(t)||pt(n))return t!==n;return!1}(h,m))return[[i,`they return conflicting types "${re(h)}" and "${re(m)}"`],[l],[d]];const g=l.selectionSet,v=d.selectionSet;if(g&&v){return function(e,t,n,r){if(e.length>0)return[[t,e.map(([e])=>e)],[n,...e.map(([,e])=>e).flat()],[r,...e.map(([,,e])=>e).flat()]]}(function(e,t,n,r,i,o,a,s){const l=[],[u,c]=Pr(e,t,i,o),[d,f]=Pr(e,t,a,s);Mr(e,l,t,n,r,u,d);for(const i of f)Ar(e,l,t,n,r,u,i);for(const i of c)Ar(e,l,t,n,r,d,i);for(const i of c)for(const o of f)Dr(e,l,t,n,r,i,o);return l}(e,t,n,p,_t(h),g,_t(m),v),i,l,d)}}function Fr(e){var t;const n=null!==(t=e.arguments)&&void 0!==t?t:[];return Re(Or({kind:N.OBJECT,fields:n.map(e=>({kind:N.OBJECT_FIELD,name:e.name,value:e.value}))}))}function Pr(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),a=Object.create(null);!function e(t,n,r,i,o){for(const a of r.selections)switch(a.kind){case N.FIELD:{const e=a.name.value;let t;(Qe(n)||Je(n))&&(t=n.getFields()[e]);const r=a.alias?a.alias.value:e;i[r]||(i[r]=[]),i[r].push([n,a,t]);break}case N.FRAGMENT_SPREAD:o[a.name.value]=!0;break;case N.INLINE_FRAGMENT:{const r=a.typeCondition,s=r?er(t.getSchema(),r):n;e(t,s,a.selectionSet,i,o);break}}}(e,n,r,o,a);const s=[o,Object.keys(a)];return t.set(r,s),s}function jr(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=er(e.getSchema(),n.typeCondition);return Pr(e,t,i,n.selectionSet)}class Vr{constructor(){this._data=new Map}has(e,t,n){var r;const[i,o]=e<t?[e,t]:[t,e],a=null===(r=this._data.get(i))||void 0===r?void 0:r.get(o);return void 0!==a&&(!!n||n===a)}add(e,t,n){const[r,i]=e<t?[e,t]:[t,e],o=this._data.get(r);void 0===o?this._data.set(r,new Map([[i,n]])):o.set(i,n)}}function Ur(e){return{InlineFragment(t){const n=e.getType(),r=e.getParentType();if(mt(n)&&mt(r)&&!Yt(e.getSchema(),n,r)){const i=re(r),o=re(n);e.reportError(new h(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,r=function(e,t){const n=e.getFragment(t);if(n){const t=er(e.getSchema(),n.typeCondition);if(mt(t))return t}}(e,n),i=e.getParentType();if(r&&i&&!Yt(e.getSchema(),r,i)){const o=re(i),a=re(r);e.reportError(new h(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}}}}function Br(e){const t=e.getSchema(),n=Object.create(null);for(const t of e.getDocument().definitions)dr(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){const i=r.name.value,o=n[i],a=null==t?void 0:t.getType(i);let s;if(o?s=$r[o.kind]:a&&(s=function(e){if(ze(e))return N.SCALAR_TYPE_EXTENSION;if(Qe(e))return N.OBJECT_TYPE_EXTENSION;if(Je(e))return N.INTERFACE_TYPE_EXTENSION;if(Ze(e))return N.UNION_TYPE_EXTENSION;if(tt(e))return N.ENUM_TYPE_EXTENSION;if(rt(e))return N.INPUT_OBJECT_TYPE_EXTENSION;l(!1,"Unexpected type: "+re(e))}(a)),s){if(s!==r.kind){const t=function(e){switch(e){case N.SCALAR_TYPE_EXTENSION:return"scalar";case N.OBJECT_TYPE_EXTENSION:return"object";case N.INTERFACE_TYPE_EXTENSION:return"interface";case N.UNION_TYPE_EXTENSION:return"union";case N.ENUM_TYPE_EXTENSION:return"enum";case N.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:l(!1,"Unexpected kind: "+re(e))}}(r.kind);e.reportError(new h(`Cannot extend non-${t} type "${i}".`,{nodes:o?[o,r]:r}))}}else{const o=Ce(i,Object.keys({...n,...null==t?void 0:t.getTypeMap()}));e.reportError(new h(`Cannot extend type "${i}" because it is not defined.`+me(o),{nodes:r.name}))}}}const $r={[N.SCALAR_TYPE_DEFINITION]:N.SCALAR_TYPE_EXTENSION,[N.OBJECT_TYPE_DEFINITION]:N.OBJECT_TYPE_EXTENSION,[N.INTERFACE_TYPE_DEFINITION]:N.INTERFACE_TYPE_EXTENSION,[N.UNION_TYPE_DEFINITION]:N.UNION_TYPE_EXTENSION,[N.ENUM_TYPE_DEFINITION]:N.ENUM_TYPE_EXTENSION,[N.INPUT_OBJECT_TYPE_DEFINITION]:N.INPUT_OBJECT_TYPE_EXTENSION};function qr(e){return{...Hr(e),Field:{leave(t){var n;const r=e.getFieldDef();if(!r)return!1;const i=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map(e=>e.name.value));for(const n of r.args)if(!i.has(n.name)&&Vt(n)){const i=re(n.type);e.reportError(new h(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function Hr(e){var t;const n=Object.create(null),r=e.getSchema(),i=null!==(t=null==r?void 0:r.getDirectives())&&void 0!==t?t:gn;for(const e of i)n[e.name]=ve(e.args.filter(Vt),e=>e.name);const o=e.getDocument().definitions;for(const e of o)if(e.kind===N.DIRECTIVE_DEFINITION){var a;const t=null!==(a=e.arguments)&&void 0!==a?a:[];n[e.name.value]=ve(t.filter(Gr),e=>e.name.value)}return{Directive:{leave(t){const r=t.name.value,i=n[r];if(i){var o;const n=null!==(o=t.arguments)&&void 0!==o?o:[],a=new Set(n.map(e=>e.name.value));for(const[n,o]of Object.entries(i))if(!a.has(n)){const i=Ge(o.type)?re(o.type):Re(o.type);e.reportError(new h(`Directive "@${r}" argument "${n}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function Gr(e){return e.type.kind===N.NON_NULL_TYPE&&null==e.defaultValue}function Wr(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n)if(pt(_t(n))){if(r){const i=t.name.value,o=re(n);e.reportError(new h(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(!r){const r=t.name.value,i=re(n);e.reportError(new h(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}function zr(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}function Kr(e,t,n){return{prev:e,key:t,typename:n}}function Qr(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function Yr(e,t,n=Jr){return function e(t,n,r,i){if(st(n))return null!=t?e(t,n.ofType,r,i):void r(Qr(i),t,new h(`Expected non-nullable type "${re(n)}" not to be null.`));if(null==t)return null;if(ot(n)){const o=n.ofType;return yn(t)?Array.from(t,(t,n)=>{const a=Kr(i,n,void 0);return e(t,o,r,a)}):[e(t,o,r,i)]}if(rt(n)){if(!s(t))return void r(Qr(i),t,new h(`Expected type "${n.name}" to be an object.`));const o={},a=n.getFields();for(const s of Object.values(a)){const a=t[s.name];if(void 0!==a)o[s.name]=e(a,s.type,r,Kr(i,s.name,n.name));else if(void 0!==s.defaultValue)o[s.name]=s.defaultValue;else if(st(s.type)){const e=re(s.type);r(Qr(i),t,new h(`Field "${s.name}" of required type "${e}" was not provided.`))}}for(const e of Object.keys(t))if(!a[e]){const o=Ce(e,Object.keys(n.getFields()));r(Qr(i),t,new h(`Field "${e}" is not defined by type "${n.name}".`+me(o)))}return o}if(pt(n)){let e;try{e=n.parseValue(t)}catch(e){return void r(Qr(i),t,e instanceof h?e:new h(`Expected type "${n.name}". `+e.message,{originalError:e}))}return void 0===e&&r(Qr(i),t,new h(`Expected type "${n.name}".`)),e}l(!1,"Unexpected input type: "+re(n))}(e,t,n,void 0)}function Jr(e,t,n){let r="Invalid value "+re(t);throw e.length>0&&(r+=` at "value${zr(e)}"`),n.message=r+": "+n.message,n}function Xr(e,t,n){if(e){if(e.kind===N.VARIABLE){const r=e.name.value;if(null==n||void 0===n[r])return;const i=n[r];if(null===i&&st(t))return;return i}if(st(t)){if(e.kind===N.NULL)return;return Xr(e,t.ofType,n)}if(e.kind===N.NULL)return null;if(ot(t)){const r=t.ofType;if(e.kind===N.LIST){const t=[];for(const i of e.values)if(Zr(i,n)){if(st(r))return;t.push(null)}else{const e=Xr(i,r,n);if(void 0===e)return;t.push(e)}return t}const i=Xr(e,r,n);if(void 0===i)return;return[i]}if(rt(t)){if(e.kind!==N.OBJECT)return;const r=Object.create(null),i=ve(e.fields,e=>e.name.value);for(const e of Object.values(t.getFields())){const t=i[e.name];if(!t||Zr(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(st(e.type))return;continue}const o=Xr(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}return r}if(pt(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}l(!1,"Unexpected input type: "+re(t))}}function Zr(e,t){return e.kind===N.VARIABLE&&(null==t||void 0===t[e.name.value])}function ei(e,t,n,r){const i=[],o=null==r?void 0:r.maxErrors;try{const r=function(e,t,n,r){const i={};for(const o of t){const t=o.variable.name.value,a=er(e,o.type);if(!ut(a)){const e=Re(o.type);r(new h(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!ri(n,t)){if(o.defaultValue)i[t]=Xr(o.defaultValue,a);else if(st(a)){const e=re(a);r(new h(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:o}))}continue}const s=n[t];if(null===s&&st(a)){const e=re(a);r(new h(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:o}))}else i[t]=Yr(s,a,(e,n,i)=>{let a=`Variable "$${t}" got invalid value `+re(n);e.length>0&&(a+=` at "${t}${zr(e)}"`),r(new h(a+"; "+i.message,{nodes:o,originalError:i.originalError}))})}return i}(e,t,n,e=>{if(null!=o&&i.length>=o)throw new h("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)});if(0===i.length)return{coerced:r}}catch(e){i.push(e)}return{errors:i}}function ti(e,t,n){var r;const i={},o=ve(null!==(r=t.arguments)&&void 0!==r?r:[],e=>e.name.value);for(const r of e.args){const e=r.name,a=r.type,s=o[e];if(!s){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(st(a))throw new h(`Argument "${e}" of required type "${re(a)}" was not provided.`,{nodes:t});continue}const l=s.value;let u=l.kind===N.NULL;if(l.kind===N.VARIABLE){const t=l.name.value;if(null==n||!ri(n,t)){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(st(a))throw new h(`Argument "${e}" of required type "${re(a)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:l});continue}u=null==n[t]}if(u&&st(a))throw new h(`Argument "${e}" of non-null type "${re(a)}" must not be null.`,{nodes:l});const c=Xr(l,a,n);if(void 0===c)throw new h(`Argument "${e}" has invalid value ${Re(l)}.`,{nodes:l});i[e]=c}return i}function ni(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find(t=>t.name.value===e.name);if(i)return ti(e,i,n)}function ri(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ii(e,t,n,r,i){const o=new Map;return oi(e,t,n,r,i,o,new Set),o}function oi(e,t,n,r,i,o,a){for(const l of i.selections)switch(l.kind){case N.FIELD:{if(!ai(n,l))continue;const e=(s=l).alias?s.alias.value:s.name.value,t=o.get(e);void 0!==t?t.push(l):o.set(e,[l]);break}case N.INLINE_FRAGMENT:if(!ai(n,l)||!si(e,l,r))continue;oi(e,t,n,r,l.selectionSet,o,a);break;case N.FRAGMENT_SPREAD:{const i=l.name.value;if(a.has(i)||!ai(n,l))continue;a.add(i);const s=t[i];if(!s||!si(e,s,r))continue;oi(e,t,n,r,s.selectionSet,o,a);break}}var s}function ai(e,t){const n=ni(fn,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=ni(dn,t,e);return!1!==(null==r?void 0:r.if)}function si(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=er(e,r);return i===n||!!vt(i)&&e.isSubType(i,n)}function li(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const i=t.name?t.name.value:null,o=Object.create(null),a=e.getDocument(),s=Object.create(null);for(const e of a.definitions)e.kind===N.FRAGMENT_DEFINITION&&(s[e.name.value]=e);const l=ii(n,s,o,r,t.selectionSet);if(l.size>1){const t=[...l.values()].slice(1).flat();e.reportError(new h(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of l.values()){t[0].name.value.startsWith("__")&&e.reportError(new h(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}}function ui(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}function ci(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n("@"+e.name.value,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of i){var o;n(`${r}.${e.name.value}`,null!==(o=e.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const r=ui(n,e=>e.name.value);for(const[n,i]of r)i.length>1&&e.reportError(new h(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:i.map(e=>e.name)}));return!1}}function di(e){return{Field:t,Directive:t};function t(t){var n;const r=ui(null!==(n=t.arguments)&&void 0!==n?n:[],e=>e.name.value);for(const[t,n]of r)n.length>1&&e.reportError(new h(`There can be only one argument named "${t}".`,{nodes:n.map(e=>e.name)}))}}function fi(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(null==n||!n.getDirective(i))return t[i]?e.reportError(new h(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new h(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}))}}}function pi(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():gn;for(const e of r)t[e.name]=!e.isRepeatable;const i=e.getDocument().definitions;for(const e of i)e.kind===N.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const o=Object.create(null),a=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let r;if(n.kind===N.SCHEMA_DEFINITION||n.kind===N.SCHEMA_EXTENSION)r=o;else if(dr(n)||pr(n)){const e=n.name.value;r=a[e],void 0===r&&(a[e]=r=Object.create(null))}else r=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(r[n]?e.reportError(new h(`The directive "@${n}" can only be used once at this location.`,{nodes:[r[n],i]})):r[n]=i)}}}}function hi(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const a=null!==(i=t.values)&&void 0!==i?i:[],s=r[o];for(const t of a){const r=t.name.value,i=n[o];tt(i)&&i.getValue(r)?e.reportError(new h(`Enum value "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new h(`Enum value "${o}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}}function mi(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const a=null!==(i=t.fields)&&void 0!==i?i:[],s=r[o];for(const t of a){const r=t.name.value;gi(n[o],r)?e.reportError(new h(`Field "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new h(`Field "${o}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}}function gi(e,t){return!!(Qe(e)||Je(e)||rt(e))&&null!=e.getFields()[t]}function vi(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new h(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function yi(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||l(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new h(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function bi(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new h(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function Ei(e){const t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;const o=null!==(i=t.operationTypes)&&void 0!==i?i:[];for(const t of o){const i=t.operation,o=n[i];r[i]?e.reportError(new h(`Type for ${i} already defined in the schema. It cannot be redefined.`,{nodes:t})):o?e.reportError(new h(`There can be only one ${i} type in schema.`,{nodes:[o,t]})):n[i]=t}return!1}}function Ti(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){const i=r.name.value;if(null==n||!n.getType(i))return t[i]?e.reportError(new h(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new h(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}))}}function wi(e){return{OperationDefinition(t){var n;const r=ui(null!==(n=t.variableDefinitions)&&void 0!==n?n:[],e=>e.variable.name.value);for(const[t,n]of r)n.length>1&&e.reportError(new h(`There can be only one variable named "$${t}".`,{nodes:n.map(e=>e.variable.name)}))}}}function Ci(e){return{ListValue(t){if(!ot(St(e.getParentInputType())))return xi(e,t),!1},ObjectValue(t){const n=_t(e.getInputType());if(!rt(n))return xi(e,t),!1;const r=ve(t.fields,e=>e.name.value);for(const i of Object.values(n.getFields())){if(!r[i.name]&&zt(i)){const r=re(i.type);e.reportError(new h(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}}},ObjectField(t){const n=_t(e.getParentInputType());if(!e.getInputType()&&rt(n)){const r=Ce(t.name.value,Object.keys(n.getFields()));e.reportError(new h(`Field "${t.name.value}" is not defined by type "${n.name}".`+me(r),{nodes:t}))}},NullValue(t){const n=e.getInputType();st(n)&&e.reportError(new h(`Expected value of type "${re(n)}", found ${Re(t)}.`,{nodes:t}))},EnumValue:t=>xi(e,t),IntValue:t=>xi(e,t),FloatValue:t=>xi(e,t),StringValue:t=>xi(e,t),BooleanValue:t=>xi(e,t)}}function xi(e,t){const n=e.getInputType();if(!n)return;const r=_t(n);if(pt(r))try{if(void 0===r.parseLiteral(t,void 0)){const r=re(n);e.reportError(new h(`Expected value of type "${r}", found ${Re(t)}.`,{nodes:t}))}}catch(r){const i=re(n);r instanceof h?e.reportError(r):e.reportError(new h(`Expected value of type "${i}", found ${Re(t)}; `+r.message,{nodes:t,originalError:r}))}else{const r=re(n);e.reportError(new h(`Expected value of type "${r}", found ${Re(t)}.`,{nodes:t}))}}function Si(e){return{VariableDefinition(t){const n=er(e.getSchema(),t.type);if(void 0!==n&&!ut(n)){const n=t.variable.name.value,r=Re(t.type);e.reportError(new h(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}function Ni(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:n,type:i,defaultValue:o}of r){const r=n.name.value,a=t[r];if(a&&i){const t=e.getSchema(),s=er(t,a.type);if(s&&!ki(t,s,a.defaultValue,i,o)){const t=re(s),o=re(i);e.reportError(new h(`Variable "$${r}" of type "${t}" used in position expecting type "${o}".`,{nodes:[a,n]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function ki(e,t,n,r,i){if(st(r)&&!st(t)){const o=void 0!==i;if(!(null!=n&&n.kind!==N.NULL)&&!o)return!1;return Qt(e,t,r.ofType)}return Qt(e,t,r)}const _i=Object.freeze([hr,bi,Cr,li,Tr,gr,Si,Wr,mr,vi,Er,kr,Ur,Sr,wi,Nr,_r,br,pi,vr,di,Ci,qr,Ni,Lr,yi]),Oi=Object.freeze([xr,Ei,Ti,hi,mi,ci,fi,Tr,br,pi,Br,yr,di,yi,Hr]);class Ii{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===N.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let r;for(;r=n.pop();)for(const e of r.selections)e.kind===N.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class Li extends Ii{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class Ai extends Ii{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new tr(this._schema);Le(e,rr(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function Di(e,t,n=_i,r,i=new tr(e)){var a;const s=null!==(a=null==r?void 0:r.maxErrors)&&void 0!==a?a:100;t||o(!1,"Must provide document."),Un(e);const l=Object.freeze({}),u=[],c=new Ai(e,t,i,e=>{if(u.length>=s)throw u.push(new h("Too many validation errors, error limit reached. Validation aborted.")),l;u.push(e)}),d=Ae(n.map(e=>e(c)));try{Le(t,rr(i,d))}catch(e){if(e!==l)throw e}return u}function Mi(e,t,n=Oi){const r=[],i=new Li(e,t,e=>{r.push(e)});return Le(e,Ae(n.map(e=>e(i)))),r}class Ri extends Error{constructor(e){super("Unexpected error value: "+re(e)),this.name="NonErrorThrown",this.thrownValue=e}}function Fi(e,t,n){var r;const i=(o=e)instanceof Error?o:new Ri(o);var o,a;return a=i,Array.isArray(a.path)?i:new h(i.message,{nodes:null!==(r=i.nodes)&&void 0!==r?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}const Pi=function(e){let t;return function(n,r,i){void 0===t&&(t=new WeakMap);let o=t.get(n);void 0===o&&(o=new WeakMap,t.set(n,o));let a=o.get(r);void 0===a&&(a=new WeakMap,o.set(r,a));let s=a.get(i);return void 0===s&&(s=e(n,r,i),a.set(i,s)),s}}((e,t,n)=>function(e,t,n,r,i){const o=new Map,a=new Set;for(const s of i)s.selectionSet&&oi(e,t,n,r,s.selectionSet,o,a);return o}(e.schema,e.fragments,e.variableValues,t,n));function ji(e){arguments.length<2||o(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:r,rootValue:i}=e;Bi(t,n,r);const s=$i(e);if(!("schema"in s))return{errors:s};try{const{operation:e}=s,t=qi(s,e,i);return a(t)?t.then(e=>Ui(e,s.errors),e=>(s.errors.push(e),Ui(null,s.errors))):Ui(t,s.errors)}catch(e){return s.errors.push(e),Ui(null,s.errors)}}function Vi(e){const t=ji(e);if(a(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Ui(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function Bi(e,t,n){t||o(!1,"Must provide document."),Un(e),null==n||s(n)||o(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function $i(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:a,variableValues:s,operationName:l,fieldResolver:u,typeResolver:c,subscribeFieldResolver:d}=e;let f;const p=Object.create(null);for(const e of i.definitions)switch(e.kind){case N.OPERATION_DEFINITION:if(null==l){if(void 0!==f)return[new h("Must provide operation name if query contains multiple operations.")];f=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===l&&(f=e);break;case N.FRAGMENT_DEFINITION:p[e.name.value]=e}if(!f)return null!=l?[new h(`Unknown operation named "${l}".`)]:[new h("Must provide an operation.")];const m=ei(r,null!==(n=f.variableDefinitions)&&void 0!==n?n:[],null!=s?s:{},{maxErrors:50});return m.errors?m.errors:{schema:r,fragments:p,rootValue:o,contextValue:a,operation:f,variableValues:m.coerced,fieldResolver:null!=u?u:Zi,typeResolver:null!=c?c:Xi,subscribeFieldResolver:null!=d?d:Zi,errors:[]}}function qi(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new h(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=ii(e.schema,e.fragments,e.variableValues,r,t.selectionSet);switch(t.operation){case x.QUERY:return Hi(e,r,n,void 0,i);case x.MUTATION:return function(e,t,n,r,i){return function(e,t,n){let r=n;for(const n of e)r=a(r)?r.then(e=>t(e,n)):t(r,n);return r}(i.entries(),(i,[o,s])=>{const l=Kr(r,o,t.name),u=Gi(e,t,n,s,l);return void 0===u?i:a(u)?u.then(e=>(i[o]=e,i)):(i[o]=u,i)},Object.create(null))}(e,r,n,void 0,i);case x.SUBSCRIPTION:return Hi(e,r,n,void 0,i)}}function Hi(e,t,n,r,i){const o=Object.create(null);let s=!1;for(const[l,u]of i.entries()){const i=Gi(e,t,n,u,Kr(r,l,t.name));void 0!==i&&(o[l]=i,a(i)&&(s=!0))}return s?(l=o,Promise.all(Object.values(l)).then(e=>{const t=Object.create(null);for(const[n,r]of Object.keys(l).entries())t[r]=e[n];return t})):o;var l}function Gi(e,t,n,r,i){var o;const s=eo(e.schema,t,r[0]);if(!s)return;const l=s.type,u=null!==(o=s.resolve)&&void 0!==o?o:e.fieldResolver,c=Wi(e,s,r,t,i);try{const t=ti(s,r[0],e.variableValues),o=u(n,t,e.contextValue,c);let d;return d=a(o)?o.then(t=>Ki(e,l,r,c,i,t)):Ki(e,l,r,c,i,o),a(d)?d.then(void 0,t=>zi(Fi(t,r,Qr(i)),l,e)):d}catch(t){return zi(Fi(t,r,Qr(i)),l,e)}}function Wi(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function zi(e,t,n){if(st(t))throw e;return n.errors.push(e),null}function Ki(e,t,n,r,i,o){if(o instanceof Error)throw o;if(st(t)){const a=Ki(e,t.ofType,n,r,i,o);if(null===a)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return a}return null==o?null:ot(t)?function(e,t,n,r,i,o){if(!yn(o))throw new h(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const s=t.ofType;let l=!1;const u=Array.from(o,(t,o)=>{const u=Kr(i,o,void 0);try{let i;return i=a(t)?t.then(t=>Ki(e,s,n,r,u,t)):Ki(e,s,n,r,u,t),a(i)?(l=!0,i.then(void 0,t=>zi(Fi(t,n,Qr(u)),s,e))):i}catch(t){return zi(Fi(t,n,Qr(u)),s,e)}});return l?Promise.all(u):u}(e,t,n,r,i,o):pt(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${re(e)}.serialize(${re(t)})\` to return non-nullable value, returned: `+re(n));return n}(t,o):vt(t)?function(e,t,n,r,i,o){var s;const l=null!==(s=t.resolveType)&&void 0!==s?s:e.typeResolver,u=e.contextValue,c=l(o,u,r,t);if(a(c))return c.then(a=>Yi(e,Qi(a,e,t,n,r,o),n,r,i,o));return Yi(e,Qi(c,e,t,n,r,o),n,r,i,o)}(e,t,n,r,i,o):Qe(t)?Yi(e,t,n,r,i,o):void l(!1,"Cannot complete value of unexpected output type: "+re(t))}function Qi(e,t,n,r,i,o){if(null==e)throw new h(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(Qe(e))throw new h("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new h(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${re(o)}, received "${re(e)}".`);const a=t.schema.getType(e);if(null==a)throw new h(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!Qe(a))throw new h(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,a))throw new h(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:r});return a}function Yi(e,t,n,r,i,o){const s=Pi(e,t,n);if(t.isTypeOf){const l=t.isTypeOf(o,e.contextValue,r);if(a(l))return l.then(r=>{if(!r)throw Ji(t,o,n);return Hi(e,t,o,i,s)});if(!l)throw Ji(t,o,n)}return Hi(e,t,o,i,s)}function Ji(e,t,n){return new h(`Expected value of type "${e.name}" but got: ${re(t)}.`,{nodes:n})}const Xi=function(e,t,n,r){if(s(e)&&"string"==typeof e.__typename)return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r<i.length;r++){const s=i[r];if(s.isTypeOf){const i=s.isTypeOf(e,t,n);if(a(i))o[r]=i;else if(i)return s.name}}return o.length?Promise.all(o).then(e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name}):void 0},Zi=function(e,t,n,r){if(s(e)||"function"==typeof e){const i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function eo(e,t,n){const r=n.name.value;return r===In.name&&e.getQueryType()===t?In:r===Ln.name&&e.getQueryType()===t?Ln:r===An.name?An:t.getFields()[r]}function to(e){return new Promise(t=>t(ro(e)))}function no(e){const t=ro(e);if(a(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function ro(e){arguments.length<2||o(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:n,rootValue:r,contextValue:i,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u}=e,c=Vn(t);if(c.length>0)return{errors:c};let d;try{d=le(n)}catch(e){return{errors:[e]}}const f=Di(t,d);return f.length>0?{errors:f}:ji({schema:t,document:d,rootValue:r,contextValue:i,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u})}function io(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}function oo(e,t){const n=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await t(e.value),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}async function ao(e){arguments.length<2||o(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,rootValue:r,contextValue:i,variableValues:a,operationName:s,fieldResolver:l,subscribeFieldResolver:u}=e,c=await so(t,n,r,i,a,s,u);if(!io(c))return c;const d=e=>ji({schema:t,document:n,rootValue:e,contextValue:i,variableValues:a,operationName:s,fieldResolver:l});return oo(c,d)}async function so(e,t,n,r,i,o,a){Bi(e,t,i);const s=$i({schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,subscribeFieldResolver:a});if(!("schema"in s))return{errors:s};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,a=t.getSubscriptionType();if(null==a)throw new h("Schema is not configured to execute subscription operation.",{nodes:r});const s=ii(t,n,i,a,r.selectionSet),[l,u]=[...s.entries()][0],c=eo(t,a,u[0]);if(!c){const e=u[0].name.value;throw new h(`The subscription field "${e}" is not defined.`,{nodes:u})}const d=Kr(void 0,l,a.name),f=Wi(e,c,u,a,d);try{var p;const t=ti(c,u[0],i),n=e.contextValue,r=null!==(p=c.subscribe)&&void 0!==p?p:e.subscribeFieldResolver,a=await r(o,t,n,f);if(a instanceof Error)throw a;return a}catch(e){throw Fi(e,u,Qr(d))}}(s);if(!io(e))throw new Error(`Subscription field must return Async Iterable. Received: ${re(e)}.`);return e}catch(e){if(e instanceof h)return{errors:[e]};throw e}}function lo(e){return{Field(t){const n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getParentType();null!=i||l(!1),e.reportError(new h(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getDirective();if(null!=i)e.reportError(new h(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{const i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||l(!1),e.reportError(new h(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=_t(e.getParentInputType());if(rt(n)){const r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new h(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=_t(e.getInputType());null!=i||l(!1),e.reportError(new h(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function uo(e){return{Field(t){const n=_t(e.getType());n&&Mn(n)&&e.reportError(new h(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}function co(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"";function o(e){return t.inputValueDeprecation?e:""}return`\n    query IntrospectionQuery {\n      __schema {\n        ${t.schemaDescription?n:""}\n        queryType { name }\n        mutationType { name }\n        subscriptionType { name }\n        types {\n          ...FullType\n        }\n        directives {\n          name\n          ${n}\n          ${i}\n          locations\n          args${o("(includeDeprecated: true)")} {\n            ...InputValue\n          }\n        }\n      }\n    }\n\n    fragment FullType on __Type {\n      kind\n      name\n      ${n}\n      ${r}\n      fields(includeDeprecated: true) {\n        name\n        ${n}\n        args${o("(includeDeprecated: true)")} {\n          ...InputValue\n        }\n        type {\n          ...TypeRef\n        }\n        isDeprecated\n        deprecationReason\n      }\n      inputFields${o("(includeDeprecated: true)")} {\n        ...InputValue\n      }\n      interfaces {\n        ...TypeRef\n      }\n      enumValues(includeDeprecated: true) {\n        name\n        ${n}\n        isDeprecated\n        deprecationReason\n      }\n      possibleTypes {\n        ...TypeRef\n      }\n    }\n\n    fragment InputValue on __InputValue {\n      name\n      ${n}\n      type { ...TypeRef }\n      defaultValue\n      ${o("isDeprecated")}\n      ${o("deprecationReason")}\n    }\n\n    fragment TypeRef on __Type {\n      kind\n      name\n      ofType {\n        kind\n        name\n        ofType {\n          kind\n          name\n          ofType {\n            kind\n            name\n            ofType {\n              kind\n              name\n              ofType {\n                kind\n                name\n                ofType {\n                  kind\n                  name\n                  ofType {\n                    kind\n                    name\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  `}function fo(e,t){let n=null;for(const i of e.definitions){var r;if(i.kind===N.OPERATION_DEFINITION)if(null==t){if(n)return null;n=i}else if((null===(r=i.name)||void 0===r?void 0:r.value)===t)return i}return n}function po(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new h("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new h("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new h("Schema is not configured for subscriptions.",{nodes:t});return n}throw new h("Can only have query, mutation and subscription operations.",{nodes:t})}function ho(e,t){const n=Vi({schema:e,document:le(co({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...t}))});return!n.errors&&n.data||l(!1),n.data}function mo(e,t){s(e)&&s(e.__schema)||o(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${re(e)}.`);const n=e.__schema,r=ye(n.types,e=>e.name,e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case _n.SCALAR:return new Lt({name:(r=e).name,description:r.description,specifiedByURL:r.specifiedByURL});case _n.OBJECT:return new At({name:(n=e).name,description:n.description,interfaces:()=>h(n),fields:()=>m(n)});case _n.INTERFACE:return new Ut({name:(t=e).name,description:t.description,interfaces:()=>h(t),fields:()=>m(t)});case _n.UNION:return function(e){if(!e.possibleTypes){const t=re(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new Bt({name:e.name,description:e.description,types:()=>e.possibleTypes.map(f)})}(e);case _n.ENUM:return function(e){if(!e.enumValues){const t=re(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new qt({name:e.name,description:e.description,values:ye(e.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))})}(e);case _n.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=re(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new Gt({name:e.name,description:e.description,fields:()=>v(e.inputFields)})}(e)}var t;var n;var r;const i=re(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${i}.`)}(e));for(const e of[...on,...Dn])r[e.name]&&(r[e.name]=e);const i=n.queryType?f(n.queryType):null,a=n.mutationType?f(n.mutationType):null,l=n.subscriptionType?f(n.subscriptionType):null,u=n.directives?n.directives.map((function(e){if(!e.args){const t=re(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=re(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new cn({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:v(e.args)})})):[];return new Pn({description:n.description,query:i,mutation:a,subscription:l,types:Object.values(r),directives:u,assumeValid:null==t?void 0:t.assumeValid});function c(e){if(e.kind===_n.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new bt(c(t))}if(e.kind===_n.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=c(t);return new Et(xt(n))}return d(e)}function d(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${re(e)}.`);const n=r[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function f(e){return Ye(d(e))}function p(e){return Xe(d(e))}function h(e){if(null===e.interfaces&&e.kind===_n.INTERFACE)return[];if(!e.interfaces){const t=re(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(p)}function m(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${re(e)}.`);return ye(e.fields,e=>e.name,g)}function g(e){const t=c(e.type);if(!dt(t)){const e=re(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=re(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:v(e.args)}}function v(e){return ye(e,e=>e.name,y)}function y(e){const t=c(e.type);if(!ut(t)){const e=re(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?Xr(ue(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}function go(e,t,n){Fn(e),null!=t&&t.kind===N.DOCUMENT||o(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&function(e,t){const n=Mi(e,t);if(0!==n.length)throw new Error(n.map(e=>e.message).join("\n\n"))}(t,e);const r=e.toConfig(),i=vo(r,t,n);return r===i?e:new Pn(i)}function vo(e,t,n){var r,i,o,a;const s=[],u=Object.create(null),c=[];let d;const f=[];for(const e of t.definitions)if(e.kind===N.SCHEMA_DEFINITION)d=e;else if(e.kind===N.SCHEMA_EXTENSION)f.push(e);else if(dr(e))s.push(e);else if(pr(e)){const t=e.name.value,n=u[t];u[t]=n?n.concat([e]):[e]}else e.kind===N.DIRECTIVE_DEFINITION&&c.push(e);if(0===Object.keys(u).length&&0===s.length&&0===c.length&&0===f.length&&null==d)return e;const p=Object.create(null);for(const t of e.types)p[t.name]=y(t);for(const e of s){var h;const t=e.name.value;p[t]=null!==(h=yo[t])&&void 0!==h?h:L(e)}const m={query:e.query&&v(e.query),mutation:e.mutation&&v(e.mutation),subscription:e.subscription&&v(e.subscription),...d&&T([d]),...T(f)};return{description:null===(r=d)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value,...m,types:Object.values(p),directives:[...e.directives.map((function(e){const t=e.toConfig();return new cn({...t,args:be(t.args,E)})})),...c.map((function(e){var t;return new cn({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:S(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(o=d)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:null!==(a=null==n?void 0:n.assumeValid)&&void 0!==a&&a};function g(e){return ot(e)?new bt(g(e.ofType)):st(e)?new Et(g(e.ofType)):v(e)}function v(e){return p[e.name]}function y(e){return Mn(e)||an(e)?e:ze(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];let i=n.specifiedByURL;for(const e of r){var o;i=null!==(o=Eo(e))&&void 0!==o?o:i}return new Lt({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):Qe(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];return new At({...n,interfaces:()=>[...e.getInterfaces().map(v),...O(r)],fields:()=>({...be(n.fields,b),...x(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):Je(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];return new Ut({...n,interfaces:()=>[...e.getInterfaces().map(v),...O(r)],fields:()=>({...be(n.fields,b),...x(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):Ze(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];return new Bt({...n,types:()=>[...e.getTypes().map(v),...I(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):tt(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[e.name])&&void 0!==t?t:[];return new qt({...n,values:{...n.values,..._(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):rt(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];return new Gt({...n,fields:()=>({...be(n.fields,e=>({...e,type:g(e.type)})),...k(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):void l(!1,"Unexpected type: "+re(e))}function b(e){return{...e,type:g(e.type),args:e.args&&be(e.args,E)}}function E(e){return{...e,type:g(e.type)}}function T(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=w(n.type)}return t}function w(e){var t;const n=e.name.value,r=null!==(t=yo[n])&&void 0!==t?t:p[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function C(e){return e.kind===N.LIST_TYPE?new bt(C(e.type)):e.kind===N.NON_NULL_TYPE?new Et(C(e.type)):w(e)}function x(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:C(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:S(n.arguments),deprecationReason:bo(n),astNode:n}}}return t}function S(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=C(e.type);n[e.name.value]={type:t,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:Xr(e.defaultValue,t),deprecationReason:bo(e),astNode:e}}return n}function k(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=C(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:Xr(n.defaultValue,e),deprecationReason:bo(n),astNode:n}}}return t}function _(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:bo(n),astNode:n}}}return t}function O(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(w))&&void 0!==t?t:[]})}function I(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(w))&&void 0!==t?t:[]})}function L(e){var t;const n=e.name.value,r=null!==(t=u[n])&&void 0!==t?t:[];switch(e.kind){case N.OBJECT_TYPE_DEFINITION:{var i;const t=[e,...r];return new At({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>O(t),fields:()=>x(t),astNode:e,extensionASTNodes:r})}case N.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...r];return new Ut({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>O(t),fields:()=>x(t),astNode:e,extensionASTNodes:r})}case N.ENUM_TYPE_DEFINITION:{var a;const t=[e,...r];return new qt({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,values:_(t),astNode:e,extensionASTNodes:r})}case N.UNION_TYPE_DEFINITION:{var s;const t=[e,...r];return new Bt({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,types:()=>I(t),astNode:e,extensionASTNodes:r})}case N.SCALAR_TYPE_DEFINITION:var l;return new Lt({name:n,description:null===(l=e.description)||void 0===l?void 0:l.value,specifiedByURL:Eo(e),astNode:e,extensionASTNodes:r});case N.INPUT_OBJECT_TYPE_DEFINITION:{var c;const t=[e,...r];return new Gt({name:n,description:null===(c=e.description)||void 0===c?void 0:c.value,fields:()=>k(t),astNode:e,extensionASTNodes:r})}}}}const yo=ve([...on,...Dn],e=>e.name);function bo(e){const t=ni(hn,e);return null==t?void 0:t.reason}function Eo(e){const t=ni(mn,e);return null==t?void 0:t.url}function To(e,t){null!=e&&e.kind===N.DOCUMENT||o(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&function(e){const t=Mi(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}(e);const n=vo({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(const e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}const r=[...n.directives,...gn.filter(e=>n.directives.every(t=>t.name!==e.name))];return new Pn({...n,directives:r})}function wo(e,t){return To(le(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function Co(e){const t=e.toConfig(),n=ye(So(t.types),e=>e.name,(function(e){if(ze(e)||Mn(e))return e;if(Qe(e)){const t=e.toConfig();return new At({...t,interfaces:()=>u(t.interfaces),fields:()=>s(t.fields)})}if(Je(e)){const t=e.toConfig();return new Ut({...t,interfaces:()=>u(t.interfaces),fields:()=>s(t.fields)})}if(Ze(e)){const t=e.toConfig();return new Bt({...t,types:()=>u(t.types)})}if(tt(e)){const t=e.toConfig();return new qt({...t,values:xo(t.values,e=>e)})}if(rt(e)){const t=e.toConfig();return new Gt({...t,fields:()=>xo(t.fields,e=>({...e,type:r(e.type)}))})}l(!1,"Unexpected type: "+re(e))}));return new Pn({...t,types:Object.values(n),directives:So(t.directives).map((function(e){const t=e.toConfig();return new cn({...t,locations:No(t.locations,e=>e),args:a(t.args)})})),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)});function r(e){return ot(e)?new bt(r(e.ofType)):st(e)?new Et(r(e.ofType)):i(e)}function i(e){return n[e.name]}function o(e){return e&&i(e)}function a(e){return xo(e,e=>({...e,type:r(e.type)}))}function s(e){return xo(e,e=>({...e,type:r(e.type),args:e.args&&a(e.args)}))}function u(e){return So(e).map(i)}}function xo(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(Ee))n[r]=t(e[r]);return n}function So(e){return No(e,e=>e.name)}function No(e,t){return e.slice().sort((e,n)=>Ee(t(e),t(n)))}function ko(e){return Io(e,e=>!vn(e),Oo)}function _o(e){return Io(e,vn,Mn)}function Oo(e){return!an(e)&&!Mn(e)}function Io(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[Lo(e),...r.map(e=>function(e){return Vo(e)+"directive @"+e.name+Fo(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e)),...i.map(e=>Ao(e))].filter(Boolean).join("\n\n")}function Lo(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();if(r&&"Subscription"!==r.name)return!1;return!0}(e))return;const t=[],n=e.getQueryType();n&&t.push("  query: "+n.name);const r=e.getMutationType();r&&t.push("  mutation: "+r.name);const i=e.getSubscriptionType();return i&&t.push("  subscription: "+i.name),Vo(e)+`schema {\n${t.join("\n")}\n}`}function Ao(e){return ze(e)?function(e){return Vo(e)+"scalar "+e.name+function(e){if(null==e.specifiedByURL)return"";return` @specifiedBy(url: ${Re({kind:N.STRING,value:e.specifiedByURL})})`}(e)}(e):Qe(e)?function(e){return Vo(e)+"type "+e.name+Do(e)+Mo(e)}(e):Je(e)?function(e){return Vo(e)+"interface "+e.name+Do(e)+Mo(e)}(e):Ze(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Vo(e)+"union "+e.name+n}(e):tt(e)?function(e){const t=e.getValues().map((e,t)=>Vo(e,"  ",!t)+"  "+e.name+jo(e.deprecationReason));return Vo(e)+"enum "+e.name+Ro(t)}(e):rt(e)?function(e){const t=Object.values(e.getFields()).map((e,t)=>Vo(e,"  ",!t)+"  "+Po(e));return Vo(e)+"input "+e.name+Ro(t)}(e):void l(!1,"Unexpected type: "+re(e))}function Do(e){const t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function Mo(e){return Ro(Object.values(e.getFields()).map((e,t)=>Vo(e,"  ",!t)+"  "+e.name+Fo(e.args,"  ")+": "+String(e.type)+jo(e.deprecationReason)))}function Ro(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function Fo(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(Po).join(", ")+")":"(\n"+e.map((e,n)=>Vo(e,"  "+t,!n)+"  "+t+Po(e)).join("\n")+"\n"+t+")"}function Po(e){const t=bn(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=" = "+Re(t)),n+jo(e.deprecationReason)}function jo(e){if(null==e)return"";if(e!==pn){return` @deprecated(reason: ${Re({kind:N.STRING,value:e})})`}return" @deprecated"}function Vo(e,t="",n=!0){const{description:r}=e;if(null==r)return"";return(t&&!n?"\n"+t:t)+Re({kind:N.STRING,value:r,block:R(r)}).replace(/\n/g,"\n"+t)+"\n"}function Uo(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:N.DOCUMENT,definitions:t}}function Bo(e){const t=[],n=Object.create(null);for(const r of e.definitions)switch(r.kind){case N.OPERATION_DEFINITION:t.push(r);break;case N.FRAGMENT_DEFINITION:n[r.name.value]=qo(r.selectionSet)}const r=Object.create(null);for(const i of t){const t=new Set;for(const e of qo(i.selectionSet))$o(t,n,e);r[i.name?i.name.value:""]={kind:N.DOCUMENT,definitions:e.definitions.filter(e=>e===i||e.kind===N.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return r}function $o(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)$o(e,t,n)}}function qo(e){const t=[];return Le(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function Ho(e){const t=se(e)?e:new ae(e),n=t.body,r=new P(t);let i="",o=!1;for(;r.advance().kind!==k.EOF;){const e=r.token,t=e.kind,a=!j(e.kind);o&&(a||e.kind===k.SPREAD)&&(i+=" ");const s=n.slice(e.start,e.end);t===k.BLOCK_STRING?i+=F(e.value,{minimize:!0}):i+=s,o=a}return i}function Go(e){const t=Wo(e);if(t)throw t;return e}function Wo(e){if("string"==typeof e||o(!1,"Expected name to be a string."),e.startsWith("__"))return new h(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{qe(e)}catch(e){return e}}let zo,Ko;function Qo(e,t){return Jo(e,t).filter(e=>e.type in zo)}function Yo(e,t){return Jo(e,t).filter(e=>e.type in Ko)}function Jo(e,t){return[...Zo(e,t),...Xo(e,t)]}function Xo(e,t){const n=[],r=ca(e.getDirectives(),t.getDirectives());for(const e of r.removed)n.push({type:zo.DIRECTIVE_REMOVED,description:e.name+" was removed."});for(const[e,t]of r.persisted){const r=ca(e.args,t.args);for(const t of r.added)Vt(t)&&n.push({type:zo.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(const t of r.removed)n.push({type:zo.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&n.push({type:zo.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const r of e.locations)t.locations.includes(r)||n.push({type:zo.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}function Zo(e,t){const n=[],r=ca(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of r.removed)n.push({type:zo.TYPE_REMOVED,description:an(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:e.name+" was removed."});for(const[e,t]of r.persisted)tt(e)&&tt(t)?n.push(...na(e,t)):Ze(e)&&Ze(t)?n.push(...ta(e,t)):rt(e)&&rt(t)?n.push(...ea(e,t)):Qe(e)&&Qe(t)||Je(e)&&Je(t)?n.push(...ia(e,t),...ra(e,t)):e.constructor!==t.constructor&&n.push({type:zo.TYPE_CHANGED_KIND,description:e.name+" changed from "+`${la(e)} to ${la(t)}.`});return n}function ea(e,t){const n=[],r=ca(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.added)zt(t)?n.push({type:zo.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:Ko.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(const t of r.removed)n.push({type:zo.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted){sa(t.type,i.type)||n.push({type:zo.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`})}return n}function ta(e,t){const n=[],r=ca(e.getTypes(),t.getTypes());for(const t of r.added)n.push({type:Ko.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(const t of r.removed)n.push({type:zo.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}function na(e,t){const n=[],r=ca(e.getValues(),t.getValues());for(const t of r.added)n.push({type:Ko.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(const t of r.removed)n.push({type:zo.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}function ra(e,t){const n=[],r=ca(e.getInterfaces(),t.getInterfaces());for(const t of r.added)n.push({type:Ko.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(const t of r.removed)n.push({type:zo.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function ia(e,t){const n=[],r=ca(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.removed)n.push({type:zo.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted){n.push(...oa(e,t,i));aa(t.type,i.type)||n.push({type:zo.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`})}return n}function oa(e,t,n){const r=[],i=ca(t.args,n.args);for(const n of i.removed)r.push({type:zo.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(const[n,o]of i.persisted){if(sa(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)r.push({type:Ko.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{const i=ua(n.defaultValue,n.type),a=ua(o.defaultValue,o.type);i!==a&&r.push({type:Ko.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${a}.`})}}else r.push({type:zo.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`})}for(const n of i.added)Vt(n)?r.push({type:zo.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:Ko.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}function aa(e,t){return ot(e)?ot(t)&&aa(e.ofType,t.ofType)||st(t)&&aa(e,t.ofType):st(e)?st(t)&&aa(e.ofType,t.ofType):Nt(t)&&e.name===t.name||st(t)&&aa(e,t.ofType)}function sa(e,t){return ot(e)?ot(t)&&sa(e.ofType,t.ofType):st(e)?st(t)&&sa(e.ofType,t.ofType)||!st(t)&&sa(e.ofType,t):Nt(t)&&e.name===t.name}function la(e){return ze(e)?"a Scalar type":Qe(e)?"an Object type":Je(e)?"an Interface type":Ze(e)?"a Union type":tt(e)?"an Enum type":rt(e)?"an Input type":void l(!1,"Unexpected type: "+re(e))}function ua(e,t){const n=bn(e,t);return null!=n||l(!1),Re(Or(n))}function ca(e,t){const n=[],r=[],i=[],o=ve(e,({name:e})=>e),a=ve(t,({name:e})=>e);for(const t of e){const e=a[t.name];void 0===e?r.push(t):i.push([t,e])}for(const e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}!function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(zo||(zo={})),function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(Ko||(Ko={}))},function(e,t,n){(function(r){var i,o,a,s;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,s=function(e,t,i,o){"use strict";function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}Object.defineProperty(e,"__esModule",{value:!0}),e.$=void 0,e.A=dv,e.B=hg,e.C=void 0,e.D=qg,e.E=void 0,e.F=xv,e.G=void 0,e.H=lE,e.I=dE,e.K=e.J=void 0,e.L=_E,e.M=void 0,e.N=zg,e.P=e.O=void 0,e.Q=gE,e.R=wE,e.S=Ov,e.T=Fy,e.U=void 0,e.V=SE,e.W=se,e.X=void 0,e.Y=LE,e.Z=RE,e._=void 0,e.a=rE,e.aD=e.aC=e.aB=e.aA=e.a9=e.a8=e.a7=e.a6=e.a5=e.a4=e.a3=e.a2=e.a1=e.a0=void 0,e.aE=$E,e.az=e.ay=e.ax=e.aw=e.av=e.au=e.at=e.as=e.ar=e.aq=e.ap=e.ao=e.an=e.am=e.al=e.ak=e.aj=e.ai=e.ah=e.ag=e.af=e.ae=e.ad=e.ac=e.ab=e.aa=e.aG=e.aF=void 0,e.b=cb,e.d=e.c=void 0,e.e=gb,e.f=db,e.g=fb,e.h=Sb,e.i=bE,e.j=Xb,e.k=void 0,e.l=Sg,e.m=void 0,e.n=hv,e.o=vv,e.p=Gy,e.q=void 0,e.r=tv,e.s=Ev,e.t=Dy,e.u=pb,e.v=Ny,e.w=lv,e.x=void 0,e.y=bg,e.z=void 0,t=s(t),o=s(o);var l=Object.defineProperty,u=(e,t)=>l(e,"name",{value:t,configurable:!0});function c(e){return"object"==typeof e&&null!==e&&"function"==typeof e.then}function d(e){return new Promise((t,n)=>{const r=e.subscribe({next:e=>{t(e),r.unsubscribe()},error:n,complete:()=>{n(new Error("no value resolved"))}})})}function f(e){return"object"==typeof e&&null!==e&&"subscribe"in e&&"function"==typeof e.subscribe}function p(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}function h(e){return new Promise((t,n)=>{var r;const i=null===(r=("return"in e?e:e[Symbol.asyncIterator]()).return)||void 0===r?void 0:r.bind(e);("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)().then(e=>{t(e.value),null==i||i()}).catch(e=>{n(e)})})}function m(e){return Promise.resolve(e).then(e=>p(e)?h(e):f(e)?d(e):e)}u(c,"isPromise"),u(d,"observableToPromise"),u(f,"isObservable"),u(p,"isAsyncIterable"),u(h,"asyncIterableToPromise"),u(m,"fetcherReturnToPromise"),globalThis&&globalThis.__awaiter;var g=globalThis&&globalThis.__await||function(e){return this instanceof g?(this.v=e,this):new g(e)};function v(e){return JSON.stringify(e,null,2)}function y(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}function b(e){return e instanceof Error?y(e):e}function E(e){return Array.isArray(e)?v({errors:e.map(e=>b(e))}):v({errors:[b(e)]})}function T(e){return v(e)}function w(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let o;try{o=(0,i.parse)(t)}catch(e){return{insertions:r,result:t}}const a=n||C,s=new i.TypeInfo(e);return(0,i.visit)(o,{leave(e){s.leave(e)},enter(e){if(s.enter(e),"Field"===e.kind&&!e.selectionSet){const n=x(k(s.getType()),a);if(n&&e.loc){const o=N(t,e.loc.start);r.push({index:e.loc.end,string:" "+(0,i.print)(n).replace(/\n/g,"\n"+o)})}}}}),{insertions:r,result:S(t,r)}}function C(e){if(!("getFields"in e))return[];const t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];const n=[];return Object.keys(t).forEach(e=>{(0,i.isLeafType)(t[e].type)&&n.push(e)}),n}function x(e,t){const n=(0,i.getNamedType)(e);if(!e||(0,i.isLeafType)(e))return;const r=t(n);return Array.isArray(r)&&0!==r.length&&"getFields"in n?{kind:i.Kind.SELECTION_SET,selections:r.map(e=>{const r=n.getFields()[e],o=r?r.type:null;return{kind:i.Kind.FIELD,name:{kind:i.Kind.NAME,value:e},selectionSet:x(o,t)}})}:void 0}function S(e,t){if(0===t.length)return e;let n="",r=0;return t.forEach(t=>{let{index:i,string:o}=t;n+=e.slice(r,i)+o,r=i}),n+=e.slice(r),n}function N(e,t){let n=t,r=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(r=n)}return e.substring(n,r)}function k(e){if(e)return e}function _(e,t){var n;const r=new Map,i=[];for(const o of e)if("Field"===o.kind){const e=t(o),a=r.get(e);if(null===(n=o.directives)||void 0===n?void 0:n.length){const e=Object.assign({},o);i.push(e)}else if((null==a?void 0:a.selectionSet)&&o.selectionSet)a.selectionSet.selections=[...a.selectionSet.selections,...o.selectionSet.selections];else if(!a){const t=Object.assign({},o);r.set(e,t),i.push(t)}}else i.push(o);return i}function O(e,t,n){var r;const o=n?(0,i.getNamedType)(n).name:null,a=[],s=[];for(let l of t){if("FragmentSpread"===l.kind){const t=l.name.value;if(!l.directives||0===l.directives.length){if(s.indexOf(t)>=0)continue;s.push(t)}const n=e[l.name.value];if(n){const{typeCondition:e,directives:t,selectionSet:r}=n;l={kind:i.Kind.INLINE_FRAGMENT,typeCondition:e,directives:t,selectionSet:r}}}if(l.kind===i.Kind.INLINE_FRAGMENT&&(!l.directives||0===(null===(r=l.directives)||void 0===r?void 0:r.length))){const t=l.typeCondition?l.typeCondition.name.value:null;if(!t||t===o){a.push(...O(e,l.selectionSet.selections,n));continue}}a.push(l)}return a}function I(e,t){const n=t?new i.TypeInfo(t):null,r=Object.create(null);for(const t of e.definitions)t.kind===i.Kind.FRAGMENT_DEFINITION&&(r[t.name.value]=t);const o={SelectionSet(e){const t=n?n.getParentType():null;let{selections:i}=e;return i=O(r,i,t),i=_(i,e=>e.alias?e.alias.value:e.name.value),Object.assign(Object.assign({},e),{selections:i})},FragmentDefinition:()=>null};return(0,i.visit)(e,n?(0,i.visitWithTypeInfo)(n,o):o)}function L(e,t,n){if(!n||n.length<1)return;const r=n.map(e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value});if(t&&-1!==r.indexOf(t))return t;if(t&&e){const n=e.map(e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value}).indexOf(t);if(-1!==n&&n<r.length)return r[n]}return r[0]}function A(e,t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}globalThis&&globalThis.__asyncValues,globalThis&&globalThis.__asyncGenerator,u(v,"stringify"),u(y,"formatSingleError"),u(b,"handleSingleError"),u(E,"formatError"),u(T,"formatResult"),u(w,"fillLeafs"),u(C,"defaultGetDefaultFieldNames"),u(x,"buildSelectionSet"),u(S,"withInsertions"),u(N,"getIndentation"),u(k,"isFieldType"),u(_,"uniqueBy"),u(O,"inlineRelevantFragmentSpreads"),u(I,"mergeAst"),u(L,"getSelectedOperationName"),u(A,"isQuotaError");class D{constructor(e){e?this.storage=e:null===e?this.storage=null:"undefined"!=typeof window?(this.storage=window.localStorage,this.storage.clear=()=>{for(const e in window.localStorage)0===e.indexOf(M+":")&&window.localStorage.removeItem(e)}):this.storage=null}get(e){if(!this.storage)return null;const t=`${M}:${e}`,n=this.storage.getItem(t);return"null"===n||"undefined"===n?(this.storage.removeItem(t),null):n||null}set(e,t){let n=!1,r=null;if(this.storage){const i=`${M}:${e}`;if(t)try{this.storage.setItem(i,t)}catch(e){r=e instanceof Error?e:new Error(""+e),n=A(this.storage,e)}else this.storage.removeItem(i)}return{isQuotaError:n,error:r}}clear(){this.storage&&this.storage.clear()}}u(D,"StorageAPI");const M="graphiql";class R{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.key=e,this.storage=t,this.maxSize=n,this.items=this.fetchAll()}get length(){return this.items.length}contains(e){return this.items.some(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName)}edit(e){const t=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==t&&(this.items.splice(t,1,e),this.save())}delete(e){const t=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==t&&(this.items.splice(t,1),this.save())}fetchRecent(){return this.items[this.items.length-1]}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const t=[...this.items,e];this.maxSize&&t.length>this.maxSize&&t.shift();for(let e=0;e<5;e++){const e=this.storage.set(this.key,JSON.stringify({[this.key]:t}));if(e&&e.error){if(!e.isQuotaError||!this.maxSize)return;t.shift()}else this.items=t}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}u(R,"QueryStore");class F{constructor(e,t){this.storage=e,this.maxHistoryLength=t,this.updateHistory=(e,t,n,r)=>{if(this.shouldSaveQuery(e,t,n,this.history.fetchRecent())){this.history.push({query:e,variables:t,headers:n,operationName:r});const i=this.history.items,o=this.favorite.items;this.queries=i.concat(o)}},this.history=new R("queries",this.storage,this.maxHistoryLength),this.favorite=new R("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,t,n,r){if(!e)return!1;try{(0,i.parse)(e)}catch(e){return!1}if(e.length>1e5)return!1;if(!r)return!0;if(JSON.stringify(e)===JSON.stringify(r.query)){if(JSON.stringify(t)===JSON.stringify(r.variables)){if(JSON.stringify(n)===JSON.stringify(r.headers))return!1;if(n&&!r.headers)return!1}if(t&&!r.variables)return!1}return!0}toggleFavorite(e,t,n,r,i,o){const a={query:e,variables:t,headers:n,operationName:r,label:i};this.favorite.contains(a)?o&&(a.favorite=!1,this.favorite.delete(a)):(a.favorite=!0,this.favorite.push(a)),this.queries=[...this.history.items,...this.favorite.items]}editLabel(e,t,n,r,i,o){const a={query:e,variables:t,headers:n,operationName:r,label:i};o?this.favorite.edit(Object.assign(Object.assign({},a),{favorite:o})):this.history.edit(a),this.queries=[...this.history.items,...this.favorite.items]}}u(F,"HistoryStore");var P=Object.defineProperty,j=u((e,t)=>P(e,"name",{value:t,configurable:!0}),"__name$H");function V(e){const n=(0,t.createContext)(null);return n.displayName=e,n}function U(e){function n(r){var i;const o=(0,t.useContext)(e);if(null===o&&(null==r?void 0:r.nonNull))throw new Error(`Tried to use \`${(null==(i=r.caller)?void 0:i.name)||n.caller.name}\` without the necessary context. Make sure to render the \`${e.displayName}Provider\` component higher up the tree.`);return o}return u(n,"useGivenContext"),j(n,"useGivenContext"),Object.defineProperty(n,"name",{value:"use"+e.displayName}),n}u(V,"createNullableContext"),j(V,"createNullableContext"),u(U,"createContextHook"),j(U,"createContextHook");var B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:{};function $(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function q(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}e.c=B,u($,"getDefaultExportFromCjs"),u(q,"getAugmentedNamespace");var H={exports:{}},G={};function W(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function z(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,u(W,"toObject"),u(z,"shouldUseNative"),z()&&Object.assign;
/** @license React v17.0.2
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var K=t.default,Q=60103;if(G.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var Y=Symbol.for;Q=Y("react.element"),G.Fragment=Y("react.fragment")}var J=K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,X=Object.prototype.hasOwnProperty,Z={key:!0,ref:!0,__self:!0,__source:!0};function ee(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)X.call(t,r)&&!Z.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:Q,type:e,key:o,ref:a,props:i,_owner:J.current}}u(ee,"q$1"),G.jsx=ee,G.jsxs=ee,H.exports=G;const te=H.exports.jsx,ne=H.exports.jsxs,re=H.exports.Fragment;var ie=Object.defineProperty,oe=u((e,t)=>ie(e,"name",{value:t,configurable:!0}),"__name$G");const ae=V("StorageContext");function se(e){const n=(0,t.useRef)(!0),[r,i]=(0,t.useState)(new D(e.storage));return(0,t.useEffect)(()=>{n.current?n.current=!1:i(new D(e.storage))},[e.storage]),te(ae.Provider,{value:r,children:e.children})}e.U=ae,u(se,"StorageContextProvider"),oe(se,"StorageContextProvider");const le=U(ae);var ue,ce,de,fe,pe,he,me,ge,ve,ye,be,Ee,Te,we,Ce,xe,Se,Ne,ke,_e,Oe,Ie,Le,Ae,De,Me,Re,Fe,Pe,je,Ve;e.X=le,function(e){function t(e){return"string"==typeof e}u(t,"is"),e.is=t}(ue||(ue={})),function(e){function t(e){return"string"==typeof e}u(t,"is"),e.is=t}(ce||(ce={})),function(e){function t(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,u(t,"is"),e.is=t}(de||(de={})),function(e){function t(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=0,e.MAX_VALUE=2147483647,u(t,"is"),e.is=t}(fe||(fe={})),function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=fe.MAX_VALUE),t===Number.MAX_VALUE&&(t=fe.MAX_VALUE),{line:e,character:t}}function n(e){var t=e;return $t.objectLiteral(t)&&$t.uinteger(t.line)&&$t.uinteger(t.character)}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(pe||(pe={})),function(e){function t(e,t,n,r){if($t.uinteger(e)&&$t.uinteger(t)&&$t.uinteger(n)&&$t.uinteger(r))return{start:pe.create(e,t),end:pe.create(n,r)};if(pe.is(e)&&pe.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(n,", ").concat(r,"]"))}function n(e){var t=e;return $t.objectLiteral(t)&&pe.is(t.start)&&pe.is(t.end)}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(he||(he={})),function(e){function t(e,t){return{uri:e,range:t}}function n(e){var t=e;return $t.defined(t)&&he.is(t.range)&&($t.string(t.uri)||$t.undefined(t.uri))}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(me||(me={})),function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}function n(e){var t=e;return $t.defined(t)&&he.is(t.targetRange)&&$t.string(t.targetUri)&&he.is(t.targetSelectionRange)&&(he.is(t.originSelectionRange)||$t.undefined(t.originSelectionRange))}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(ge||(ge={})),function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}function n(e){var t=e;return $t.objectLiteral(t)&&$t.numberRange(t.red,0,1)&&$t.numberRange(t.green,0,1)&&$t.numberRange(t.blue,0,1)&&$t.numberRange(t.alpha,0,1)}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(ve||(ve={})),function(e){function t(e,t){return{range:e,color:t}}function n(e){var t=e;return $t.objectLiteral(t)&&he.is(t.range)&&ve.is(t.color)}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(ye||(ye={})),function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}function n(e){var t=e;return $t.objectLiteral(t)&&$t.string(t.label)&&($t.undefined(t.textEdit)||Le.is(t))&&($t.undefined(t.additionalTextEdits)||$t.typedArray(t.additionalTextEdits,Le.is))}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(be||(be={})),(Te=Ee||(Ee={})).Comment="comment",Te.Imports="imports",Te.Region="region",function(e){function t(e,t,n,r,i,o){var a={startLine:e,endLine:t};return $t.defined(n)&&(a.startCharacter=n),$t.defined(r)&&(a.endCharacter=r),$t.defined(i)&&(a.kind=i),$t.defined(o)&&(a.collapsedText=o),a}function n(e){var t=e;return $t.objectLiteral(t)&&$t.uinteger(t.startLine)&&$t.uinteger(t.startLine)&&($t.undefined(t.startCharacter)||$t.uinteger(t.startCharacter))&&($t.undefined(t.endCharacter)||$t.uinteger(t.endCharacter))&&($t.undefined(t.kind)||$t.string(t.kind))}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(we||(we={})),function(e){function t(e,t){return{location:e,message:t}}function n(e){var t=e;return $t.defined(t)&&me.is(t.location)&&$t.string(t.message)}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(Ce||(Ce={})),(Se=xe||(xe={})).Error=1,Se.Warning=2,Se.Information=3,Se.Hint=4,(ke=Ne||(Ne={})).Unnecessary=1,ke.Deprecated=2,function(e){function t(e){var t=e;return $t.objectLiteral(t)&&$t.string(t.href)}u(t,"is"),e.is=t}(_e||(_e={})),function(e){function t(e,t,n,r,i,o){var a={range:e,message:t};return $t.defined(n)&&(a.severity=n),$t.defined(r)&&(a.code=r),$t.defined(i)&&(a.source=i),$t.defined(o)&&(a.relatedInformation=o),a}function n(e){var t,n=e;return $t.defined(n)&&he.is(n.range)&&$t.string(n.message)&&($t.number(n.severity)||$t.undefined(n.severity))&&($t.integer(n.code)||$t.string(n.code)||$t.undefined(n.code))&&($t.undefined(n.codeDescription)||$t.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&($t.string(n.source)||$t.undefined(n.source))&&($t.undefined(n.relatedInformation)||$t.typedArray(n.relatedInformation,Ce.is))}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(Oe||(Oe={})),function(e){function t(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={title:e,command:t};return $t.defined(n)&&n.length>0&&(i.arguments=n),i}function n(e){var t=e;return $t.defined(t)&&$t.string(t.title)&&$t.string(t.command)}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(Ie||(Ie={})),function(e){function t(e,t){return{range:e,newText:t}}function n(e,t){return{range:{start:e,end:e},newText:t}}function r(e){return{range:e,newText:""}}function i(e){var t=e;return $t.objectLiteral(t)&&$t.string(t.newText)&&he.is(t.range)}u(t,"replace"),e.replace=t,u(n,"insert"),e.insert=n,u(r,"del"),e.del=r,u(i,"is"),e.is=i}(Le||(Le={})),function(e){function t(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r}function n(e){var t=e;return $t.objectLiteral(t)&&$t.string(t.label)&&($t.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&($t.string(t.description)||void 0===t.description)}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(Ae||(Ae={})),function(e){function t(e){var t=e;return $t.string(t)}u(t,"is"),e.is=t}(De||(De={})),function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}function r(e,t){return{range:e,newText:"",annotationId:t}}function i(e){var t=e;return Le.is(t)&&(Ae.is(t.annotationId)||De.is(t.annotationId))}u(t,"replace"),e.replace=t,u(n,"insert"),e.insert=n,u(r,"del"),e.del=r,u(i,"is"),e.is=i}(Me||(Me={})),function(e){function t(e,t){return{textDocument:e,edits:t}}function n(e){var t=e;return $t.defined(t)&&$e.is(t.textDocument)&&Array.isArray(t.edits)}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(Re||(Re={})),function(e){function t(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r}function n(e){var t=e;return t&&"create"===t.kind&&$t.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||$t.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||$t.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||De.is(t.annotationId))}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(Fe||(Fe={})),function(e){function t(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i}function n(e){var t=e;return t&&"rename"===t.kind&&$t.string(t.oldUri)&&$t.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||$t.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||$t.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||De.is(t.annotationId))}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(Pe||(Pe={})),function(e){function t(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r}function n(e){var t=e;return t&&"delete"===t.kind&&$t.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||$t.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||$t.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||De.is(t.annotationId))}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(je||(je={})),function(e){function t(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return $t.string(e.kind)?Fe.is(e)||Pe.is(e)||je.is(e):Re.is(e)})))}u(t,"is"),e.is=t}(Ve||(Ve={}));var Ue,Be,$e,qe,He,Ge,We,ze,Ke,Qe,Ye,Je,Xe,Ze,et,tt,nt,rt,it,ot,at,st,lt,ut,ct,dt,ft,pt,ht,mt,gt,vt,yt,bt,Et,Tt,wt,Ct,xt,St,Nt,kt,_t,Ot,It,Lt,At,Dt,Mt,Rt,Ft,Pt,jt,Vt,Ut=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return u(e,"TextEditChangeImpl"),e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=Le.insert(e,t):De.is(n)?(i=n,r=Me.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Me.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=Le.replace(e,t):De.is(n)?(i=n,r=Me.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Me.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=Le.del(e):De.is(t)?(r=t,n=Me.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=Me.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Bt=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return u(e,"ChangeAnnotations"),e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(De.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id ".concat(n," is already in use."));if(void 0===t)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Bt(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(Re.is(e)){var n=new Ut(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new Ut(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}u(e,"WorkspaceChange"),Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if($e.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new Ut(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new Ut(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Bt,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(Ae.is(t)||De.is(t)?r=t:n=t,void 0===r?i=Fe.create(e,n):(o=De.is(r)?r:this._changeAnnotations.manage(r),i=Fe.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(Ae.is(n)||De.is(n)?i=n:r=n,void 0===i?o=Pe.create(e,t,r):(a=De.is(i)?i:this._changeAnnotations.manage(i),o=Pe.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(Ae.is(t)||De.is(t)?r=t:n=t,void 0===r?i=je.create(e,n):(o=De.is(r)?r:this._changeAnnotations.manage(r),i=je.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),function(e){function t(e){return{uri:e}}function n(e){var t=e;return $t.defined(t)&&$t.string(t.uri)}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(Ue||(Ue={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return $t.defined(t)&&$t.string(t.uri)&&$t.integer(t.version)}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(Be||(Be={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return $t.defined(t)&&$t.string(t.uri)&&(null===t.version||$t.integer(t.version))}u(t,"create"),e.create=t,u(n,"is"),e.is=n}($e||($e={})),function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}function n(e){var t=e;return $t.defined(t)&&$t.string(t.uri)&&$t.string(t.languageId)&&$t.integer(t.version)&&$t.string(t.text)}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(qe||(qe={})),function(e){function t(t){var n=t;return n===e.PlainText||n===e.Markdown}e.PlainText="plaintext",e.Markdown="markdown",u(t,"is"),e.is=t}(He||(He={})),function(e){function t(e){var t=e;return $t.objectLiteral(e)&&He.is(t.kind)&&$t.string(t.value)}u(t,"is"),e.is=t}(Ge||(Ge={})),(ze=We||(We={})).Text=1,ze.Method=2,ze.Function=3,ze.Constructor=4,ze.Field=5,ze.Variable=6,ze.Class=7,ze.Interface=8,ze.Module=9,ze.Property=10,ze.Unit=11,ze.Value=12,ze.Enum=13,ze.Keyword=14,ze.Snippet=15,ze.Color=16,ze.File=17,ze.Reference=18,ze.Folder=19,ze.EnumMember=20,ze.Constant=21,ze.Struct=22,ze.Event=23,ze.Operator=24,ze.TypeParameter=25,(Qe=Ke||(Ke={})).PlainText=1,Qe.Snippet=2,(Ye||(Ye={})).Deprecated=1,function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}function n(e){var t=e;return t&&$t.string(t.newText)&&he.is(t.insert)&&he.is(t.replace)}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(Je||(Je={})),(Ze=Xe||(Xe={})).asIs=1,Ze.adjustIndentation=2,function(e){function t(e){var t=e;return t&&($t.string(t.detail)||void 0===t.detail)&&($t.string(t.description)||void 0===t.description)}u(t,"is"),e.is=t}(et||(et={})),function(e){function t(e){return{label:e}}u(t,"create"),e.create=t}(tt||(tt={})),function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}u(t,"create"),e.create=t}(nt||(nt={})),function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function n(e){var t=e;return $t.string(t)||$t.objectLiteral(t)&&$t.string(t.language)&&$t.string(t.value)}u(t,"fromPlainText"),e.fromPlainText=t,u(n,"is"),e.is=n}(rt||(rt={})),function(e){function t(e){var t=e;return!!t&&$t.objectLiteral(t)&&(Ge.is(t.contents)||rt.is(t.contents)||$t.typedArray(t.contents,rt.is))&&(void 0===e.range||he.is(e.range))}u(t,"is"),e.is=t}(it||(it={})),function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}u(t,"create"),e.create=t}(ot||(ot={})),function(e){function t(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={label:e};return $t.defined(t)&&(i.documentation=t),$t.defined(n)?i.parameters=n:i.parameters=[],i}u(t,"create"),e.create=t}(at||(at={})),(lt=st||(st={})).Text=1,lt.Read=2,lt.Write=3,function(e){function t(e,t){var n={range:e};return $t.number(t)&&(n.kind=t),n}u(t,"create"),e.create=t}(ut||(ut={})),(dt=ct||(ct={})).File=1,dt.Module=2,dt.Namespace=3,dt.Package=4,dt.Class=5,dt.Method=6,dt.Property=7,dt.Field=8,dt.Constructor=9,dt.Enum=10,dt.Interface=11,dt.Function=12,dt.Variable=13,dt.Constant=14,dt.String=15,dt.Number=16,dt.Boolean=17,dt.Array=18,dt.Object=19,dt.Key=20,dt.Null=21,dt.EnumMember=22,dt.Struct=23,dt.Event=24,dt.Operator=25,dt.TypeParameter=26,(ft||(ft={})).Deprecated=1,function(e){function t(e,t,n,r,i){var o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o}u(t,"create"),e.create=t}(pt||(pt={})),function(e){function t(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}u(t,"create"),e.create=t}(ht||(ht={})),function(e){function t(e,t,n,r,i,o){var a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a}function n(e){var t=e;return t&&$t.string(t.name)&&$t.number(t.kind)&&he.is(t.range)&&he.is(t.selectionRange)&&(void 0===t.detail||$t.string(t.detail))&&(void 0===t.deprecated||$t.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(mt||(mt={})),(vt=gt||(gt={})).Empty="",vt.QuickFix="quickfix",vt.Refactor="refactor",vt.RefactorExtract="refactor.extract",vt.RefactorInline="refactor.inline",vt.RefactorRewrite="refactor.rewrite",vt.Source="source",vt.SourceOrganizeImports="source.organizeImports",vt.SourceFixAll="source.fixAll",(bt=yt||(yt={})).Invoked=1,bt.Automatic=2,function(e){function t(e,t,n){var r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r}function n(e){var t=e;return $t.defined(t)&&$t.typedArray(t.diagnostics,Oe.is)&&(void 0===t.only||$t.typedArray(t.only,$t.string))&&(void 0===t.triggerKind||t.triggerKind===yt.Invoked||t.triggerKind===yt.Automatic)}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(Et||(Et={})),function(e){function t(e,t,n){var r={title:e},i=!0;return"string"==typeof t?(i=!1,r.kind=t):Ie.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r}function n(e){var t=e;return t&&$t.string(t.title)&&(void 0===t.diagnostics||$t.typedArray(t.diagnostics,Oe.is))&&(void 0===t.kind||$t.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||Ie.is(t.command))&&(void 0===t.isPreferred||$t.boolean(t.isPreferred))&&(void 0===t.edit||Ve.is(t.edit))}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(Tt||(Tt={})),function(e){function t(e,t){var n={range:e};return $t.defined(t)&&(n.data=t),n}function n(e){var t=e;return $t.defined(t)&&he.is(t.range)&&($t.undefined(t.command)||Ie.is(t.command))}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(wt||(wt={})),function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}function n(e){var t=e;return $t.defined(t)&&$t.uinteger(t.tabSize)&&$t.boolean(t.insertSpaces)}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(Ct||(Ct={})),function(e){function t(e,t,n){return{range:e,target:t,data:n}}function n(e){var t=e;return $t.defined(t)&&he.is(t.range)&&($t.undefined(t.target)||$t.string(t.target))}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(xt||(xt={})),function(e){function t(e,t){return{range:e,parent:t}}function n(t){var n=t;return $t.objectLiteral(n)&&he.is(n.range)&&(void 0===n.parent||e.is(n.parent))}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(St||(St={})),(kt=Nt||(Nt={})).namespace="namespace",kt.type="type",kt.class="class",kt.enum="enum",kt.interface="interface",kt.struct="struct",kt.typeParameter="typeParameter",kt.parameter="parameter",kt.variable="variable",kt.property="property",kt.enumMember="enumMember",kt.event="event",kt.function="function",kt.method="method",kt.macro="macro",kt.keyword="keyword",kt.modifier="modifier",kt.comment="comment",kt.string="string",kt.number="number",kt.regexp="regexp",kt.operator="operator",kt.decorator="decorator",(Ot=_t||(_t={})).declaration="declaration",Ot.definition="definition",Ot.readonly="readonly",Ot.static="static",Ot.deprecated="deprecated",Ot.abstract="abstract",Ot.async="async",Ot.modification="modification",Ot.documentation="documentation",Ot.defaultLibrary="defaultLibrary",function(e){function t(e){var t=e;return $t.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}u(t,"is"),e.is=t}(It||(It={})),function(e){function t(e,t){return{range:e,text:t}}function n(e){var t=e;return null!=t&&he.is(t.range)&&$t.string(t.text)}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(Lt||(Lt={})),function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}function n(e){var t=e;return null!=t&&he.is(t.range)&&$t.boolean(t.caseSensitiveLookup)&&($t.string(t.variableName)||void 0===t.variableName)}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(At||(At={})),function(e){function t(e,t){return{range:e,expression:t}}function n(e){var t=e;return null!=t&&he.is(t.range)&&($t.string(t.expression)||void 0===t.expression)}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(Dt||(Dt={})),function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}function n(e){var t=e;return $t.defined(t)&&he.is(e.stoppedLocation)}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(Mt||(Mt={})),function(e){function t(e){return 1===e||2===e}e.Type=1,e.Parameter=2,u(t,"is"),e.is=t}(Rt||(Rt={})),function(e){function t(e){return{value:e}}function n(e){var t=e;return $t.objectLiteral(t)&&(void 0===t.tooltip||$t.string(t.tooltip)||Ge.is(t.tooltip))&&(void 0===t.location||me.is(t.location))&&(void 0===t.command||Ie.is(t.command))}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(Ft||(Ft={})),function(e){function t(e,t,n){var r={position:e,label:t};return void 0!==n&&(r.kind=n),r}function n(e){var t=e;return $t.objectLiteral(t)&&pe.is(t.position)&&($t.string(t.label)||$t.typedArray(t.label,Ft.is))&&(void 0===t.kind||Rt.is(t.kind))&&void 0===t.textEdits||$t.typedArray(t.textEdits,Le.is)&&(void 0===t.tooltip||$t.string(t.tooltip)||Ge.is(t.tooltip))&&(void 0===t.paddingLeft||$t.boolean(t.paddingLeft))&&(void 0===t.paddingRight||$t.boolean(t.paddingRight))}u(t,"create"),e.create=t,u(n,"is"),e.is=n}(Pt||(Pt={})),function(e){function t(e){var t=e;return $t.objectLiteral(t)&&ce.is(t.uri)&&$t.string(t.name)}u(t,"is"),e.is=t}(jt||(jt={})),function(e){function t(e,t,n,r){return new Wt(e,t,n,r)}function n(e){var t=e;return!!($t.defined(t)&&$t.string(t.uri)&&($t.undefined(t.languageId)||$t.string(t.languageId))&&$t.uinteger(t.lineCount)&&$t.func(t.getText)&&$t.func(t.positionAt)&&$t.func(t.offsetAt))}function r(e,t){for(var n=e.getText(),r=i(t,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=n.length,a=r.length-1;a>=0;a--){var s=r[a],l=e.offsetAt(s.range.start),u=e.offsetAt(s.range.end);if(!(u<=o))throw new Error("Overlapping edit");n=n.substring(0,l)+s.newText+n.substring(u,n.length),o=l}return n}function i(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),o=e.slice(n);i(r,t),i(o,t);for(var a=0,s=0,l=0;a<r.length&&s<o.length;){var u=t(r[a],o[s]);e[l++]=u<=0?r[a++]:o[s++]}for(;a<r.length;)e[l++]=r[a++];for(;s<o.length;)e[l++]=o[s++];return e}u(t,"create"),e.create=t,u(n,"is"),e.is=n,u(r,"applyEdits"),e.applyEdits=r,u(i,"mergeSort")}(Vt||(Vt={}));var $t,qt,Ht,Gt,Wt=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return u(e,"FullTextDocument"),Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return pe.create(0,e);for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var o=n-1;return pe.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();function zt(e){return{ofRule:e}}function Kt(e,t){return{ofRule:e,isList:!0,separator:t}}function Qt(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every(t=>t.match&&!t.match(e))},e}function Yt(e,t){return{style:t,match:t=>t.kind===e}}function Jt(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}function Xt(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function Zt(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function en(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){var n;(null===(n=e.prevState)||void 0===n?void 0:n.prevState)&&(e.name=t.value,e.prevState.prevState.type=t.value)}}}!function(e){var t=Object.prototype.toString;function n(e){return void 0!==e}function r(e){return void 0===e}function i(e){return!0===e||!1===e}function o(e){return"[object String]"===t.call(e)}function a(e){return"[object Number]"===t.call(e)}function s(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r}function l(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647}function c(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647}function d(e){return"[object Function]"===t.call(e)}function f(e){return null!==e&&"object"==typeof e}function p(e,t){return Array.isArray(e)&&e.every(t)}u(n,"defined"),e.defined=n,u(r,"undefined$1"),e.undefined=r,u(i,"boolean"),e.boolean=i,u(o,"string"),e.string=o,u(a,"number"),e.number=a,u(s,"numberRange"),e.numberRange=s,u(l,"integer"),e.integer=l,u(c,"uinteger"),e.uinteger=c,u(d,"func"),e.func=d,u(f,"objectLiteral"),e.objectLiteral=f,u(p,"typedArray"),e.typedArray=p}($t||($t={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(qt||(qt={})),u(zt,"opt"),u(Kt,"list$1"),u(Qt,"butNot"),u(Yt,"t$2"),u(Jt,"p$1"),Kt("Definition"),Xt("query"),zt(Zt("def")),zt("VariableDefinitions"),Kt("Directive"),Xt("mutation"),zt(Zt("def")),zt("VariableDefinitions"),Kt("Directive"),Xt("subscription"),zt(Zt("def")),zt("VariableDefinitions"),Kt("Directive"),Jt("("),Kt("VariableDefinition"),Jt(")"),Jt(":"),zt("DefaultValue"),Jt("$","variable"),Zt("variable"),Jt("="),Jt("{"),Kt("Selection"),Jt("}"),Zt("property"),Jt(":"),Zt("qualifier"),zt("Arguments"),Kt("Directive"),zt("SelectionSet"),Zt("property"),zt("Arguments"),Kt("Directive"),zt("SelectionSet"),Jt("("),Kt("Argument"),Jt(")"),Zt("attribute"),Jt(":"),Jt("..."),Zt("def"),Kt("Directive"),Jt("..."),zt("TypeCondition"),Kt("Directive"),Xt("fragment"),zt(Qt(Zt("def"),[Xt("on")])),Kt("Directive"),Xt("on"),Yt("Number","number"),Yt("Name","builtin"),Yt("Name","keyword"),Zt("string-2"),Jt("["),Kt("Value"),Jt("]"),Jt("{"),Kt("ObjectField"),Jt("}"),Zt("attribute"),Jt(":"),Jt("["),Jt("]"),zt(Jt("!")),zt(Jt("!")),en("atom"),Jt("@","meta"),Zt("meta"),zt("Arguments"),Xt("directive"),Jt("@","meta"),Zt("meta"),zt("ArgumentsDef"),Xt("on"),Kt("DirectiveLocation",Jt("|")),Xt("interface"),Zt("atom"),zt("Implements"),Kt("Directive"),Jt("{"),Kt("FieldDef"),Jt("}"),Xt("implements"),Kt("NamedType",Jt("&")),Zt("string-2"),Xt("schema"),Kt("Directive"),Jt("{"),Kt("OperationTypeDef"),Jt("}"),Zt("keyword"),Jt(":"),Zt("atom"),Xt("scalar"),Zt("atom"),Kt("Directive"),Xt("type"),Zt("atom"),zt("Implements"),Kt("Directive"),Jt("{"),Kt("FieldDef"),Jt("}"),Zt("property"),zt("ArgumentsDef"),Jt(":"),Kt("Directive"),Jt("("),Kt("InputValueDef"),Jt(")"),Zt("attribute"),Jt(":"),zt("DefaultValue"),Kt("Directive"),Xt("union"),Zt("atom"),Kt("Directive"),Jt("="),Kt("UnionMember",Jt("|")),Xt("enum"),Zt("atom"),Kt("Directive"),Jt("{"),Kt("EnumValueDef"),Jt("}"),Zt("string-2"),Kt("Directive"),Xt("input"),Zt("atom"),Kt("Directive"),Jt("{"),Kt("InputValueDef"),Jt("}"),Xt("extend"),i.Kind.SCHEMA_EXTENSION,i.Kind.SCALAR_TYPE_EXTENSION,i.Kind.OBJECT_TYPE_EXTENSION,i.Kind.INTERFACE_TYPE_EXTENSION,i.Kind.UNION_TYPE_EXTENSION,i.Kind.ENUM_TYPE_EXTENSION,i.Kind.INPUT_OBJECT_TYPE_EXTENSION,u(Xt,"word"),u(Zt,"name"),u(en,"type"),Object.assign(Object.assign({},i.Kind),{ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",EXTENSION_DEFINITION:"ExtensionDefinition",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"}),i.Kind.SCHEMA_DEFINITION,i.Kind.OPERATION_TYPE_DEFINITION,i.Kind.SCALAR_TYPE_DEFINITION,i.Kind.OBJECT_TYPE_DEFINITION,i.Kind.INTERFACE_TYPE_DEFINITION,i.Kind.UNION_TYPE_DEFINITION,i.Kind.ENUM_TYPE_DEFINITION,i.Kind.INPUT_OBJECT_TYPE_DEFINITION,i.Kind.DIRECTIVE_DEFINITION,i.Kind.SCHEMA_EXTENSION,i.Kind.SCALAR_TYPE_EXTENSION,i.Kind.OBJECT_TYPE_EXTENSION,i.Kind.INTERFACE_TYPE_EXTENSION,i.Kind.UNION_TYPE_EXTENSION,i.Kind.ENUM_TYPE_EXTENSION,i.Kind.INPUT_OBJECT_TYPE_EXTENSION,(Gt=Ht||(Ht={})).TYPE_SYSTEM="TYPE_SYSTEM",Gt.EXECUTABLE="EXECUTABLE";var tn={exports:{}};function nn(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}u(nn,"nullthrows"),tn.exports=nn,tn.exports.default=nn,Object.defineProperty(tn.exports,"__esModule",{value:!0});var rn=$(tn.exports);const on=u((e,t)=>{if(!t)return[];const n=new Map,r=new Set;(0,i.visit)(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){r.has(e.name.value)||r.add(e.name.value)}});const o=new Set;r.forEach(e=>{!n.has(e)&&t.has(e)&&o.add(rn(t.get(e)))});const a=[];return o.forEach(e=>{(0,i.visit)(e,{FragmentSpread(e){!r.has(e.name.value)&&t.get(e.name.value)&&(o.add(rn(t.get(e.name.value))),r.add(e.name.value))}}),n.has(e.name.value)||a.push(e)}),a},"getFragmentDependenciesForAST");function an(e,t){const n=Object.create(null);return t.definitions.forEach(t=>{if("OperationDefinition"===t.kind){const r=t.variableDefinitions;r&&r.forEach(t=>{let{variable:r,type:o}=t;const a=(0,i.typeFromAST)(e,o);a?n[r.name.value]=a:o.kind===i.Kind.NAMED_TYPE&&"Float"===o.name.value&&(n[r.name.value]=i.GraphQLFloat)})}}),n}function sn(e,t){const n=t?an(t,e):void 0,r=[];return(0,i.visit)(e,{OperationDefinition(e){r.push(e)}}),{variableToType:n,operations:r}}function ln(e,t){if(t)try{const n=(0,i.parse)(t);return Object.assign(Object.assign({},sn(n,e)),{documentAST:n})}catch(e){return}}u(an,"collectVariables"),u(sn,"getOperationASTFacts"),u(ln,"getOperationFacts"),globalThis&&globalThis.__awaiter;
/*!
 * is-primitive <https://github.com/jonschlinkert/is-primitive>
 *
 * Copyright (c) 2014-present, Jon Schlinkert.
 * Released under the MIT License.
 */
var un=u((function(e){return"object"==typeof e?null===e:"function"!=typeof e}),"isPrimitive"),cn=u((function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}),"isObject");
/*!
 * isobject <https://github.com/jonschlinkert/isobject>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function dn(e){return!0===cn(e)&&"[object Object]"===Object.prototype.toString.call(e)}u(dn,"isObjectObject");var fn=u((function(e){var t,n;return!1!==dn(e)&&"function"==typeof(t=e.constructor)&&!1!==dn(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}),"isPlainObject");
/*!
 * set-value <https://github.com/jonschlinkert/set-value>
 *
 * Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
 * Released under the MIT License.
 */const{deleteProperty:pn}=Reflect,hn=un,mn=fn,gn=u(e=>"object"==typeof e&&null!==e||"function"==typeof e,"isObject$1"),vn=u(e=>"__proto__"===e||"constructor"===e||"prototype"===e,"isUnsafeKey"),yn=u(e=>{if(!hn(e))throw new TypeError("Object keys must be strings or symbols");if(vn(e))throw new Error(`Cannot set unsafe key: "${e}"`)},"validateKey"),bn=u(e=>Array.isArray(e)?e.flat().map(String).join(","):e,"toStringKey"),En=u((e,t)=>{if("string"!=typeof e||!t)return e;let n=e+";";return void 0!==t.arrays&&(n+=`arrays=${t.arrays};`),void 0!==t.separator&&(n+=`separator=${t.separator};`),void 0!==t.split&&(n+=`split=${t.split};`),void 0!==t.merge&&(n+=`merge=${t.merge};`),void 0!==t.preservePaths&&(n+=`preservePaths=${t.preservePaths};`),n},"createMemoKey"),Tn=u((e,t,n)=>{const r=bn(t?En(e,t):e);yn(r);const i=Sn.cache.get(r)||n();return Sn.cache.set(r,i),i},"memoize"),wn=u((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"==typeof e&&!1!==r&&/\//.test(e))return[e];const i=[];let o="";const a=u(e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)},"push");for(let t=0;t<e.length;t++){const r=e[t];"\\"!==r?r!==n?o+=r:(a(o),o=""):o+=e[++t]}return o&&a(o),i}),"splitString"),Cn=u((e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:Tn(e,t,()=>wn(e,t)),"split"),xn=u((e,t,n,r)=>{if(yn(t),void 0===n)pn(e,t);else if(r&&r.merge){const i="function"===r.merge?r.merge:Object.assign;i&&mn(e[t])&&mn(n)?e[t]=i(e[t],n):e[t]=n}else e[t]=n;return e},"assignProp"),Sn=u((e,t,n,r)=>{if(!t||!gn(e))return e;const i=Cn(t,r);let o=e;for(let e=0;e<i.length;e++){const t=i[e],a=i[e+1];if(yn(t),void 0===a){xn(o,t,n,r);break}"number"!=typeof a||Array.isArray(o[t])?(gn(o[t])||(o[t]={}),o=o[t]):o=o[t]=[]}return e},"setValue");Sn.split=Cn,Sn.cache=new Map,Sn.clear=()=>{Sn.cache=new Map};var Nn=Sn;function kn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),t.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"}))}function _n(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5}))}function On(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75}))}function In(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5}))}function Ln(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M1 1L12.9998 12.9997",stroke:"currentColor",strokeWidth:1.5}),t.createElement("path",{d:"M13 1L1.00079 13.0003",stroke:"currentColor",strokeWidth:1.5}))}function An(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75",stroke:"currentColor",strokeWidth:1.5}),t.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5}))}function Dn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),t.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),t.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2}))}function Mn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),t.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"}))}function Rn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),t.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),t.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}))}function Fn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z",fill:"currentColor"}))}function Pn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25",stroke:"currentColor",strokeWidth:1.5}),t.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z",stroke:"currentColor",strokeWidth:1.5}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z",fill:"currentColor"}))}function jn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25",stroke:"currentColor",strokeWidth:1.5}),t.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5}))}function Vn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"}))}function Un(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),t.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"}))}function Bn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),t.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),t.createElement("path",{d:"M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25",stroke:"currentColor",strokeWidth:1.5}))}function $n(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5)","transform-origin":"center"}),t.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"}))}function qn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}))}function Hn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),t.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3}))}function Gn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6",stroke:"currentColor",strokeWidth:1.5}),t.createElement("path",{d:"M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12",stroke:"currentColor",strokeWidth:1.5}),t.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),t.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5}))}function Wn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z",fill:"currentColor"}),t.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}))}function zn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z",fill:"currentColor"}))}function Kn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z",fill:"currentColor"}))}function Qn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),t.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),t.createElement("path",{d:"M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735",stroke:"currentColor",strokeWidth:1.5625}),t.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),t.createElement("path",{d:"M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}))}function Yn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),t.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),t.createElement("path",{d:"M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513",stroke:"currentColor",strokeWidth:1}),t.createElement("path",{d:"M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487",stroke:"currentColor",strokeWidth:1}))}function Jn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),t.createElement("path",{d:"M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5",stroke:"currentColor",strokeWidth:1.2}))}function Xn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z",fill:"currentColor"}))}function Zn(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",fill:"currentColor",stroke:"currentColor"}))}function er(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",stroke:"currentColor",strokeWidth:1.5}))}function tr(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"}))}function nr(e){let{title:n,titleId:r,...i}=e;return t.createElement("svg",Object.assign({height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),n?t.createElement("title",{id:r},n):null,t.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),t.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"}))}u(kn,"SvgArgument"),u(_n,"SvgChevronDown"),u(On,"SvgChevronLeft"),u(In,"SvgChevronUp"),u(Ln,"SvgClose"),u(An,"SvgCopy"),u(Dn,"SvgDeprecatedArgument"),u(Mn,"SvgDeprecatedEnumValue"),u(Rn,"SvgDeprecatedField"),u(Fn,"SvgDirective"),u(Pn,"SvgDocsFilled"),u(jn,"SvgDocs"),u(Vn,"SvgEnumValue"),u(Un,"SvgField"),u(Bn,"SvgHistory"),u($n,"SvgImplements"),u(qn,"SvgKeyboardShortcut"),u(Hn,"SvgMagnifyingGlass"),u(Gn,"SvgMerge"),u(Wn,"SvgPen"),u(zn,"SvgPlay"),u(Kn,"SvgPlus"),u(Qn,"SvgPrettify"),u(Yn,"SvgReload"),u(Jn,"SvgRootType"),u(Xn,"SvgSettings"),u(Zn,"SvgStarFilled"),u(er,"SvgStar"),u(tr,"SvgStop"),u(nr,"SvgType");var rr=Object.defineProperty,ir=u((e,t)=>rr(e,"name",{value:t,configurable:!0}),"__name$F");const or=Rr(kn,"argument icon");e._=or;const ar=Rr(_n,"chevron down icon");e.$=ar;const sr=Rr(On,"chevron left icon");e.a0=sr;const lr=Rr(In,"chevron up icon");e.a1=lr;const ur=Rr(Ln,"close icon");e.a2=ur;const cr=Rr(An,"copy icon");e.a3=cr;const dr=Rr(Dn,"deprecated argument icon");e.a4=dr;const fr=Rr(Mn,"deprecated enum value icon");e.a5=fr;const pr=Rr(Rn,"deprecated field icon");e.a6=pr;const hr=Rr(Fn,"directive icon");e.a7=hr;const mr=Rr(Pn,"filled docs icon");e.a8=mr;const gr=Rr(jn,"docs icon");e.a9=gr;const vr=Rr(Vn,"enum value icon");e.aa=vr;const yr=Rr(Un,"field icon");e.ab=yr;const br=Rr(Bn,"history icon");e.ac=br;const Er=Rr($n,"implements icon");e.ad=Er;const Tr=Rr(qn,"keyboard shortcut icon");e.ae=Tr;const wr=Rr(Hn,"magnifying glass icon");e.af=wr;const Cr=Rr(Gn,"merge icon");e.ag=Cr;const xr=Rr(Wn,"pen icon");e.ah=xr;const Sr=Rr(zn,"play icon");e.ai=Sr;const Nr=Rr(Kn,"plus icon");e.aj=Nr;const kr=Rr(Qn,"prettify icon");e.ak=kr;const _r=Rr(Yn,"reload icon");e.al=_r;const Or=Rr(Jn,"root type icon");e.am=Or;const Ir=Rr(Xn,"settings icon");e.an=Ir;const Lr=Rr(Zn,"filled star icon");e.ao=Lr;const Ar=Rr(er,"star icon");e.ap=Ar;const Dr=Rr(tr,"stop icon");e.aq=Dr;const Mr=Rr(nr,"type icon");function Rr(e,t){const n=ir(u((function(n){return te(e,{...n,title:t})}),"IconComponent"),"IconComponent");return Object.defineProperty(n,"name",{value:e.name}),n}e.ar=Mr,u(Rr,"generateIcon"),ir(Rr,"generateIcon");var Fr=Object.defineProperty,Pr=u((e,t)=>Fr(e,"name",{value:t,configurable:!0}),"__name$E");function jr(){let e="";for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const t of n)t&&(e+=(e?" ":"")+t);return e}u(jr,"compose"),Pr(jr,"compose");const Vr=(0,t.forwardRef)((e,t)=>te("button",{...e,ref:t,className:jr("graphiql-un-styled",e.className)}));e.as=Vr,Vr.displayName="UnStyledButton";const Ur=(0,t.forwardRef)((e,t)=>te("button",{...e,ref:t,className:jr("graphiql-button","success"===e.state?"graphiql-button-success":"error"===e.state?"graphiql-button-error":"",e.className)}));e.at=Ur,Ur.displayName="Button";const Br=(0,t.forwardRef)((e,t)=>te("div",{...e,ref:t,className:("graphiql-button-group "+(e.className||"")).trim()}));function $r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}e.au=Br,Br.displayName="ButtonGroup",u($r,"canUseDOM");var qr=$r()?t.useLayoutEffect:t.useEffect;function Hr(){var e=(0,t.useState)(Object.create(null))[1];return(0,t.useCallback)((function(){e(Object.create(null))}),[])}function Gr(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}u(Hr,"useForceUpdate"),u(Gr,"_objectWithoutPropertiesLoose$b");var Wr=["unstable_skipInitialRender"],zr=u((function(e){var n=e.children,r=e.type,i=void 0===r?"reach-portal":r,a=e.containerRef,s=(0,t.useRef)(null),l=(0,t.useRef)(null),u=Hr();return qr((function(){if(s.current){var e=s.current.ownerDocument,t=(null==a?void 0:a.current)||e.body;return l.current=null==e?void 0:e.createElement(i),t.appendChild(l.current),u(),function(){l.current&&t&&t.removeChild(l.current)}}}),[i,u,a]),l.current?(0,o.createPortal)(n,l.current):(0,t.createElement)("span",{ref:s})}),"PortalImpl"),Kr=u((function(e){var n=e.unstable_skipInitialRender,r=Gr(e,Wr),i=(0,t.useState)(!1),o=i[0],a=i[1];return(0,t.useEffect)((function(){n&&a(!0)}),[n]),n&&!o?null:(0,t.createElement)(zr,r)}),"Portal");function Qr(e){return $r()?e?e.ownerDocument:document:null}function Yr(e){return"boolean"==typeof e}function Jr(e){return!(!e||"[object Function]"!={}.toString.call(e))}function Xr(e){return"string"==typeof e}function Zr(){}function ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ti(e,t){if(e){if("string"==typeof e)return ei(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ei(e,t):void 0}}function ni(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=ti(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function ri(e,t){if(null!=e)if(Jr(e))e(t);else try{e.current=t}catch(n){throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}function ii(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,t.useCallback)((function(e){for(var t,r=ni(n);!(t=r()).done;)ri(t.value,e)}),n)}function oi(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}}function ai(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function si(){return(si=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function li(){}function ui(){}function ci(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}function di(e,n){var r=(0,t.useState)((function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}}))[0];return r.callback=n,r.facade}function fi(e,t){return di(t||null,(function(t){return e.forEach((function(e){return ci(e,t)}))}))}u(Qr,"getOwnerDocument"),u(Yr,"isBoolean"),u(Jr,"isFunction$1"),u(Xr,"isString$1"),u(Zr,"noop"),u(ei,"_arrayLikeToArray"),u(ti,"_unsupportedIterableToArray"),u(ni,"_createForOfIteratorHelperLoose"),u(ri,"assignRef$1"),u(ii,"useComposedRefs"),u(oi,"composeEventHandlers"),u(ai,"_objectWithoutPropertiesLoose$a"),u(si,"_extends$a"),u(li,"emptyFunction$1"),u(ui,"emptyFunctionWithReset$1"),ui.resetWarningCache=li,u((function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}u(e,"shim"),e.isRequired=e,u(t,"getShim");var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ui,resetWarningCache:li};return n.PropTypes=n,n}),"factoryWithThrowingShims$1")(),u(ci,"assignRef"),u(di,"useCallbackRef"),u(fi,"useMergeRefs");var pi={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},hi=u((function(){return(hi=Object.assign||u((function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}),"__assign")).apply(this,arguments)}),"__assign");function mi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function gi(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function vi(e){return e}function yi(e,t){void 0===t&&(t=vi);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter((function(e){return e!==i}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=u((function(){var n=t;t=[],n.forEach(e)}),"executeQueue"),a=u((function(){return Promise.resolve().then(o)}),"cycle");a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function bi(e,t){return void 0===t&&(t=vi),yi(e,t)}function Ei(e){void 0===e&&(e={});var t=yi(null);return t.options=hi({async:!0,ssr:!1},e),t}u(mi,"__rest"),u(gi,"__spreadArray"),u(vi,"ItoI"),u(yi,"innerCreateMedium"),u(bi,"createMedium"),u(Ei,"createSidecarMedium");var Ti=u((function(e){var n=e.sideCar,r=mi(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw new Error("Sidecar medium not found");return t.createElement(i,hi({},r))}),"SideCar$1");function wi(e,t){return e.useMedium(t),Ti}Ti.isSideCarExport=!0,u(wi,"exportSidecar");var Ci=bi({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),xi=bi(),Si=bi(),Ni=Ei({async:!0}),ki=[],_i=t.forwardRef(u((function(e,n){var r,i=t.useState(),o=i[0],a=i[1],s=t.useRef(),l=t.useRef(!1),u=t.useRef(null),c=e.children,d=e.disabled,f=e.noFocusGuards,p=e.persistentFocus,h=e.crossFrame,m=e.autoFocus;e.allowTextSelection;var g=e.group,v=e.className,y=e.whiteList,b=e.hasPositiveIndices,E=e.shards,T=void 0===E?ki:E,w=e.as,C=void 0===w?"div":w,x=e.lockProps,S=void 0===x?{}:x,N=e.sideCar,k=e.returnFocus,_=e.focusOptions,O=e.onActivation,I=e.onDeactivation,L=t.useState({})[0],A=t.useCallback((function(){u.current=u.current||document&&document.activeElement,s.current&&O&&O(s.current),l.current=!0}),[O]),D=t.useCallback((function(){l.current=!1,I&&I(s.current)}),[I]);(0,t.useEffect)((function(){d||(u.current=null)}),[]);var M=t.useCallback((function(e){var t=u.current;if(t&&t.focus){var n="function"==typeof k?k(t):k;if(n){var r="object"==typeof n?n:void 0;u.current=null,e?Promise.resolve().then((function(){return t.focus(r)})):t.focus(r)}}}),[k]),R=t.useCallback((function(e){l.current&&Ci.useMedium(e)}),[]),F=xi.useMedium,P=t.useCallback((function(e){s.current!==e&&(s.current=e,a(e))}),[]),j=si(((r={})["data-focus-lock-disabled"]=d&&"disabled",r["data-focus-lock"]=g,r),S),V=!0!==f,U=V&&"tail"!==f,B=fi([n,P]);return t.createElement(t.Fragment,null,V&&[t.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:d?-1:0,style:pi}),b?t.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:d?-1:1,style:pi}):null],!d&&t.createElement(N,{id:L,sideCar:Ni,observed:o,disabled:d,persistentFocus:p,crossFrame:h,autoFocus:m,whiteList:y,shards:T,onActivation:A,onDeactivation:D,returnFocus:M,focusOptions:_}),t.createElement(C,si({ref:B},j,{className:v,onBlur:F,onFocus:R}),c),U&&t.createElement("div",{"data-focus-guard":!0,tabIndex:d?-1:0,style:pi}))}),"FocusLockUI"));_i.propTypes={},_i.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var Oi=_i;function Ii(e,t){return(Ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():u((function(e,t){return e.__proto__=t,e}),"_setPrototypeOf"))(e,t)}function Li(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ii(e,t)}function Ai(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Di(e,n){function r(e){return e.displayName||e.name||"Component"}return u(r,"getDisplayName"),u((function(i){var o,a=[];function s(){o=e(a.map((function(e){return e.props}))),n(o)}u(s,"emitChange");var l=function(e){function t(){return e.apply(this,arguments)||this}Li(t,e),u(t,"SideEffect"),t.peek=u((function(){return o}),"peek");var n=t.prototype;return n.componentDidMount=u((function(){a.push(this),s()}),"componentDidMount"),n.componentDidUpdate=u((function(){s()}),"componentDidUpdate"),n.componentWillUnmount=u((function(){var e=a.indexOf(this);a.splice(e,1),s()}),"componentWillUnmount"),n.render=u((function(){return te(i,{...this.props})}),"render"),t}(t.PureComponent);return Ai(l,"displayName","SideEffect("+r(i)+")"),l}),"wrap")}u(Ii,"_setPrototypeOf"),u(Li,"_inheritsLoose"),u(Ai,"_defineProperty"),u(Di,"withSideEffect");var Mi=u((function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t}),"toArray"),Ri=u((function(e){return Array.isArray(e)?e:[e]}),"asArray"),Fi=u((function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}),"isElementHidden"),Pi=u((function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode}),"getParentNode"),ji=u((function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE}),"isTopNode"),Vi=u((function(e,t){return!e||ji(e)||!Fi(e)&&t(Pi(e))}),"isVisibleUncached"),Ui=u((function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=Vi(t,Ui.bind(void 0,e));return e.set(t,r),r}),"isVisibleCached"),Bi=u((function(e,t){return!(e&&!ji(e))||!!Ki(e)&&t(Pi(e))}),"isAutoFocusAllowedUncached"),$i=u((function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=Bi(t,$i.bind(void 0,e));return e.set(t,r),r}),"isAutoFocusAllowedCached"),qi=u((function(e){return e.dataset}),"getDataset"),Hi=u((function(e){return"BUTTON"===e.tagName}),"isHTMLButtonElement"),Gi=u((function(e){return"INPUT"===e.tagName}),"isHTMLInputElement"),Wi=u((function(e){return Gi(e)&&"radio"===e.type}),"isRadioElement"),zi=u((function(e){return!((Gi(e)||Hi(e))&&("hidden"===e.type||e.disabled))}),"notHiddenInput"),Ki=u((function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)}),"isAutoFocusAllowed"),Qi=u((function(e){var t;return Boolean(e&&(null===(t=qi(e))||void 0===t?void 0:t.focusGuard))}),"isGuard"),Yi=u((function(e){return!Qi(e)}),"isNotAGuard"),Ji=u((function(e){return Boolean(e)}),"isDefined"),Xi=u((function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r}),"tabSort"),Zi=u((function(e,t,n){return Mi(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(Xi)}),"orderByTabIndex"),eo=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),to="".concat(eo,", [data-focus-guard]"),no=u((function(e,t){var n;return Mi((null===(n=e.shadowRoot)||void 0===n?void 0:n.children)||e.children).reduce((function(e,n){return e.concat(n.matches(t?to:eo)?[n]:[],no(n))}),[])}),"getFocusablesWithShadowDom"),ro=u((function(e,t){return e.reduce((function(e,n){return e.concat(no(n,t),n.parentNode?Mi(n.parentNode.querySelectorAll(eo)).filter((function(e){return e===n})):[])}),[])}),"getFocusables"),io=u((function(e){var t=e.querySelectorAll("[".concat("data-autofocus-inside","]"));return Mi(t).map((function(e){return ro([e])})).reduce((function(e,t){return e.concat(t)}),[])}),"getParentAutofocusables"),oo=u((function(e,t){return Mi(e).filter((function(e){return Ui(t,e)})).filter((function(e){return zi(e)}))}),"filterFocusable"),ao=u((function(e,t){return void 0===t&&(t=new Map),Mi(e).filter((function(e){return $i(t,e)}))}),"filterAutoFocusable"),so=u((function(e,t,n){return Zi(oo(ro(e,n),t),!0,n)}),"getTabbableNodes"),lo=u((function(e,t){return Zi(oo(ro(e),t),!1)}),"getAllTabbableNodes"),uo=u((function(e,t){return oo(io(e),t)}),"parentAutofocusables"),co=u((function(e,t){return(e.shadowRoot?co(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||Mi(e.children).some((function(e){return co(e,t)}))}),"contains"),fo=u((function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var o=e[r].compareDocumentPosition(e[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}),"filterNested"),po=u((function(e){return e.parentNode?po(e.parentNode):e}),"getTopParent"),ho=u((function(e){return Ri(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute("data-focus-lock");return e.push.apply(e,n?fo(Mi(po(t).querySelectorAll("[".concat("data-focus-lock",'="').concat(n,'"]:not([').concat("data-focus-lock-disabled",'="disabled"])')))):[t]),e}),[])}),"getAllAffectedNodes"),mo=u((function(e){return e.activeElement?e.activeElement.shadowRoot?mo(e.activeElement.shadowRoot):e.activeElement:void 0}),"getNestedShadowActiveElement"),go=u((function(){return document.activeElement?document.activeElement.shadowRoot?mo(document.activeElement.shadowRoot):document.activeElement:void 0}),"getActiveElement"),vo=u((function(e){return e===document.activeElement}),"focusInFrame"),yo=u((function(e){return Boolean(Mi(e.querySelectorAll("iframe")).some((function(e){return vo(e)})))}),"focusInsideIframe"),bo=u((function(e){var t=document&&go();return!(!t||t.dataset&&t.dataset.focusGuard)&&ho(e).some((function(e){return co(e,t)||yo(e)}))}),"focusInside"),Eo=u((function(){var e=document&&go();return!!e&&Mi(document.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(t){return co(t,e)}))}),"focusIsHidden"),To=u((function(e,t){return t.filter(Wi).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}),"findSelectedRadio"),wo=u((function(e,t){return Wi(e)&&e.name?To(e,t):e}),"correctNode"),Co=u((function(e){var t=new Set;return e.forEach((function(n){return t.add(wo(n,e))})),e.filter((function(e){return t.has(e)}))}),"correctNodes"),xo=u((function(e){return e[0]&&e.length>1?wo(e[0],e):e[0]}),"pickFirstFocus"),So=u((function(e,t){return e.length>1?e.indexOf(wo(e[t],e)):t}),"pickFocusable"),No=u((function(e,t,n,r){var i=e.length,o=e[0],a=e[i-1],s=Qi(n);if(!(n&&e.indexOf(n)>=0)){var l=void 0!==n?t.indexOf(n):-1,u=r?t.indexOf(r):l,c=r?e.indexOf(r):-1,d=l-u,f=t.indexOf(o),p=t.indexOf(a),h=Co(t),m=(void 0!==n?h.indexOf(n):-1)-(r?h.indexOf(r):l),g=So(e,0),v=So(e,i-1);return-1===l||-1===c?"NEW_FOCUS":!d&&c>=0?c:l<=f&&s&&Math.abs(d)>1?v:l>=p&&s&&Math.abs(d)>1?g:d&&Math.abs(m)>1?c:l<=f?v:l>p?g:d?Math.abs(d)>1?c:(i+c+d)%i:void 0}}),"newFocus"),ko=u((function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&ko(e.parentNode.host||e.parentNode,t),t}),"getParents"),_o=u((function(e,t){for(var n=ko(e),r=ko(t),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1}),"getCommonParent"),Oo=u((function(e,t,n){var r=Ri(e),i=Ri(t),o=r[0],a=!1;return i.filter(Boolean).forEach((function(e){a=_o(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=_o(o,e);t&&(a=!a||co(t,a)?t:_o(t,a))}))})),a}),"getTopCommonParent"),Io=u((function(e,t){return e.reduce((function(e,n){return e.concat(uo(n,t))}),[])}),"allParentAutofocusables"),Lo=u((function(e){return function(t){var n;return t.autofocus||!!(null===(n=qi(t))||void 0===n?void 0:n.autofocus)||e.indexOf(t)>=0}}),"findAutoFocused"),Ao=u((function(e,t){var n=new Map;return t.forEach((function(e){return n.set(e.node,e)})),e.map((function(e){return n.get(e)})).filter(Ji)}),"reorderNodes"),Do=u((function(e,t){var n=document&&go(),r=ho(e).filter(Yi),i=Oo(n||e,e,r),o=new Map,a=lo(r,o),s=so(r,o).filter((function(e){var t=e.node;return Yi(t)}));if(s[0]||(s=a)[0]){var l=lo([i],o).map((function(e){return e.node})),u=Ao(l,s),c=u.map((function(e){return e.node})),d=No(c,l,n,t);if("NEW_FOCUS"===d){var f=ao(a.map((function(e){return e.node}))).filter(Lo(Io(r,o)));return{node:f&&f.length?xo(f):xo(ao(c))}}return void 0===d?d:u[d]}}),"getFocusMerge"),Mo=u((function(e){var t=ho(e).filter(Yi),n=Oo(e,e,t),r=new Map,i=so([n],r,!0),o=so(t,r).filter((function(e){var t=e.node;return Yi(t)})).map((function(e){return e.node}));return i.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:Qi(t)}}))}),"getFocusabledIn"),Ro=u((function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()}),"focusOn"),Fo=0,Po=!1,jo=u((function(e,t,n){void 0===n&&(n={});var r=Do(e,t);if(!Po&&r){if(Fo>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Po=!0,void setTimeout((function(){Po=!1}),1);Fo++,Ro(r.node,n.focusOptions),Fo--}}),"setFocus");function Vo(e){var t=window.setImmediate;void 0!==t?t(e):setTimeout(e,1)}u(Vo,"deferAction");var Uo=u((function(){return document&&document.activeElement===document.body}),"focusOnBody"),Bo=u((function(){return Uo()||Eo()}),"isFreeFocus"),$o=null,qo=null,Ho=null,Go=!1,Wo=u((function(){return!0}),"defaultWhitelist"),zo=u((function(e){return($o.whiteList||Wo)(e)}),"focusWhitelisted"),Ko=u((function(e,t){Ho={observerNode:e,portaledElement:t}}),"recordPortal"),Qo=u((function(e){return Ho&&Ho.portaledElement===e}),"focusIsPortaledPair");function Yo(e,t,n,r){var i=null,o=e;do{var a=r[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else{if(!a.lockItem)break;if(o!==e)return;i=null}}while((o+=n)!==t);i&&(i.node.tabIndex=0)}u(Yo,"autoGuard");var Jo=u((function(e){return e&&"current"in e?e.current:e}),"extractRef"),Xo=u((function(e){return e?Boolean(Go):"meanwhile"===Go}),"focusWasOutside"),Zo=u((function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))}),"checkInHost"),ea=u((function(e,t){return t.some((function(t){return Zo(e,t,t)}))}),"withinHost"),ta=u((function(){var e=!1;if($o){var t=$o,n=t.observed,r=t.persistentFocus,i=t.autoFocus,o=t.shards,a=t.crossFrame,s=t.focusOptions,l=n||Ho&&Ho.portaledElement,u=document&&document.activeElement;if(l){var c=[l].concat(o.map(Jo).filter(Boolean));if(u&&!zo(u)||(r||Xo(a)||!Bo()||!qo&&i)&&(l&&!(bo(c)||u&&ea(u,c)||Qo(u))&&(document&&!qo&&u&&!i?(u.blur&&u.blur(),document.body.focus()):(e=jo(c,qo,{focusOptions:s}),Ho={})),Go=!1,qo=document&&document.activeElement),document){var d=document&&document.activeElement,f=Mo(c),p=f.map((function(e){return e.node})).indexOf(d);p>-1&&(f.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),Yo(p,f.length,1,f),Yo(p,-1,-1,f))}}}return e}),"activateTrap"),na=u((function(e){ta()&&e&&(e.stopPropagation(),e.preventDefault())}),"onTrap"),ra=u((function(){return Vo(ta)}),"onBlur"),ia=u((function(e){var t=e.target,n=e.currentTarget;n.contains(t)||Ko(n,t)}),"onFocus"),oa=u((function(){return null}),"FocusWatcher"),aa=u((function(){Go="just",setTimeout((function(){Go="meanwhile"}),0)}),"onWindowBlur"),sa=u((function(){document.addEventListener("focusin",na),document.addEventListener("focusout",ra),window.addEventListener("blur",aa)}),"attachHandler"),la=u((function(){document.removeEventListener("focusin",na),document.removeEventListener("focusout",ra),window.removeEventListener("blur",aa)}),"detachHandler");function ua(e){return e.filter((function(e){return!e.disabled}))}function ca(e){var t=e.slice(-1)[0];t&&!$o&&sa();var n=$o,r=n&&t&&t.id===n.id;$o=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(qo=null,r&&n.observed===t.observed||t.onActivation(),ta(),Vo(ta)):(la(),qo=null)}u(ua,"reducePropsToState"),u(ca,"handleStateChangeOnClient"),Ci.assignSyncMedium(ia),xi.assignMedium(ra),Si.assignMedium((function(e){return e({moveFocusInside:jo,focusInside:bo})}));var da=Di(ua,ca)(oa),fa=t.forwardRef(u((function(e,n){return t.createElement(Oi,si({sideCar:da,ref:n},e))}),"FocusLockUICombination")),pa=Oi.propTypes||{};pa.sideCar,ai(pa,["sideCar"]),fa.propTypes={};var ha=fa,ma=Ei(),ga=u((function(){}),"nothing"),va=t.forwardRef((function(e,n){var r=t.useRef(null),i=t.useState({onScrollCapture:ga,onWheelCapture:ga,onTouchMoveCapture:ga}),o=i[0],a=i[1],s=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,b=mi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=p,T=fi([r,n]),w=hi(hi({},b),o);return t.createElement(t.Fragment,null,d&&t.createElement(E,{sideCar:ma,removeScrollBar:c,shards:f,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:r}),s?t.cloneElement(t.Children.only(l),hi(hi({},w),{ref:T})):t.createElement(y,hi({},w,{className:u,ref:T}),l))}));va.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},va.classNames={fullWidth:"width-before-scroll-bar",zeroRight:"right-scroll-bar-position"};var ya=u((function(){return n.nc}),"getNonce");function ba(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ya();return t&&e.setAttribute("nonce",t),e}function Ea(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ta(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}u(ba,"makeStyleTag"),u(Ea,"injectStyles"),u(Ta,"insertStyleTag");var wa=u((function(){var e=0,t=null;return{add:function(n){0==e&&(t=ba())&&(Ea(t,n),Ta(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}}),"stylesheetSingleton"),Ca=u((function(){var e=wa();return function(n,r){t.useEffect((function(){return e.add(n),function(){e.remove()}}),[n&&r])}}),"styleHookSingleton"),xa=u((function(){var e=Ca();return u((function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}),"Sheet")}),"styleSingleton"),Sa={left:0,top:0,right:0,gap:0},Na=u((function(e){return parseInt(e||"",10)||0}),"parse$1"),ka=u((function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[Na(n),Na(r),Na(i)]}),"getOffset"),_a=u((function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Sa;var t=ka(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}),"getGapWidth"),Oa=xa(),Ia=u((function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat("right-scroll-bar-position"," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat("width-before-scroll-bar"," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat("right-scroll-bar-position"," .").concat("right-scroll-bar-position"," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat("width-before-scroll-bar"," .").concat("width-before-scroll-bar"," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")}),"getStyles$2"),La=u((function(e){var n=e.noRelative,r=e.noImportant,i=e.gapMode,o=void 0===i?"margin":i,a=t.useMemo((function(){return _a(o)}),[o]);return t.createElement(Oa,{styles:Ia(a,!n,o,r?"":"!important")})}),"RemoveScrollBar"),Aa=!1;if("undefined"!=typeof window)try{var Da=Object.defineProperty({},"passive",{get:function(){return Aa=!0,!0}});window.addEventListener("test",Da,Da),window.removeEventListener("test",Da,Da)}catch(e){Aa=!1}var Ma=!!Aa&&{passive:!1},Ra=u((function(e){return"TEXTAREA"===e.tagName}),"alwaysContainsScroll"),Fa=u((function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!Ra(e)&&"visible"===n[t])}),"elementCanBeScrolled"),Pa=u((function(e){return Fa(e,"overflowY")}),"elementCouldBeVScrolled"),ja=u((function(e){return Fa(e,"overflowX")}),"elementCouldBeHScrolled"),Va=u((function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),$a(e,n)){var r=qa(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1}),"locationCouldBeScrolled"),Ua=u((function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}),"getVScrollVariables"),Ba=u((function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}),"getHScrollVariables"),$a=u((function(e,t){return"v"===e?Pa(t):ja(t)}),"elementCouldBeScrolled"),qa=u((function(e,t){return"v"===e?Ua(t):Ba(t)}),"getScrollVariables"),Ha=u((function(e,t){return"h"===e&&"rtl"===t?-1:1}),"getDirectionFactor"),Ga=u((function(e,t,n,r,i){var o=Ha(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,c=a>0,d=0,f=0;do{var p=qa(e,s),h=p[0],m=p[1]-p[2]-o*h;(h||m)&&$a(e,s)&&(d+=m,f+=h),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(i&&0===d||!i&&a>d)||!c&&(i&&0===f||!i&&-a>f))&&(u=!0),u}),"handleScroll"),Wa=u((function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]}),"getTouchXY"),za=u((function(e){return[e.deltaX,e.deltaY]}),"getDeltaXY"),Ka=u((function(e){return e&&"current"in e?e.current:e}),"extractRef"),Qa=u((function(e,t){return e[0]===t[0]&&e[1]===t[1]}),"deltaCompare"),Ya=u((function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")}),"generateStyle"),Ja=0,Xa=[];function Za(e){var n=t.useRef([]),r=t.useRef([0,0]),i=t.useRef(),o=t.useState(Ja++)[0],a=t.useState((function(){return xa()}))[0],s=t.useRef(e);t.useEffect((function(){s.current=e}),[e]),t.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=gi([e.lockRef.current],(e.shards||[]).map(Ka),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=t.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var n,o=Wa(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=Va(d,c);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=Va(d,c)),!f)return!1;if(!i.current&&"changedTouches"in e&&(l||u)&&(i.current=n),!n)return!0;var p=i.current||n;return Ga(p,t,e,"h"===p?l:u,!0)}),[]),u=t.useCallback((function(e){var t=e;if(Xa.length&&Xa[Xa.length-1]===a){var r="deltaY"in t?za(t):Wa(t),i=n.current.filter((function(e){return e.name===t.type&&e.target===t.target&&Qa(e.delta,r)}))[0];if(i&&i.should)t.cancelable&&t.preventDefault();else if(!i){var o=(s.current.shards||[]).map(Ka).filter(Boolean).filter((function(e){return e.contains(t.target)}));(o.length>0?l(t,o[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),c=t.useCallback((function(e,t,r,i){var o={name:e,delta:t,target:r,should:i};n.current.push(o),setTimeout((function(){n.current=n.current.filter((function(e){return e!==o}))}),1)}),[]),d=t.useCallback((function(e){r.current=Wa(e),i.current=void 0}),[]),f=t.useCallback((function(t){c(t.type,za(t),t.target,l(t,e.lockRef.current))}),[]),p=t.useCallback((function(t){c(t.type,Wa(t),t.target,l(t,e.lockRef.current))}),[]);t.useEffect((function(){return Xa.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Ma),document.addEventListener("touchmove",u,Ma),document.addEventListener("touchstart",d,Ma),function(){Xa=Xa.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,Ma),document.removeEventListener("touchmove",u,Ma),document.removeEventListener("touchstart",d,Ma)}}),[]);var h=e.removeScrollBar,m=e.inert;return t.createElement(t.Fragment,null,m?t.createElement(a,{styles:Ya(o)}):null,h?t.createElement(La,{gapMode:"margin"}):null)}u(Za,"RemoveScrollSideCar");var es=wi(ma,Za),ts=t.forwardRef((function(e,n){return t.createElement(va,hi({},e,{ref:n,sideCar:es}))}));ts.classNames=va.classNames;var ns=ts,rs={exports:{}};function is(){}function os(){}u(is,"emptyFunction"),u(os,"emptyFunctionWithReset"),os.resetWarningCache=is;var as=u((function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}u(e,"shim"),e.isRequired=e,u(t,"getShim");var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:os,resetWarningCache:is};return n.PropTypes=n,n}),"factoryWithThrowingShims");rs.exports=as();var ss=rs.exports;function ls(){return(ls=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function us(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}u(ls,"_extends$9"),u(us,"_objectWithoutPropertiesLoose$9");var cs=["as","isOpen"],ds=["allowPinchZoom","as","dangerouslyBypassFocusLock","dangerouslyBypassScrollLock","initialFocusRef","onClick","onDismiss","onKeyDown","onMouseDown","unstable_lockFocusAcrossFrames"],fs=["as","onClick","onKeyDown"],ps=["allowPinchZoom","initialFocusRef","isOpen","onDismiss"];ss.bool,ss.bool,ss.bool,ss.func;var hs=(0,t.forwardRef)(u((function(e,n){var r=e.as,i=void 0===r?"div":r,o=e.isOpen,a=void 0===o||o,s=us(e,cs);return(0,t.useEffect)((function(){a?window.__REACH_DISABLE_TOOLTIPS=!0:window.requestAnimationFrame((function(){window.__REACH_DISABLE_TOOLTIPS=!1}))}),[a]),a?(0,t.createElement)(Kr,{"data-reach-dialog-wrapper":""},(0,t.createElement)(ms,ls({ref:n,as:i},s))):null}),"DialogOverlay")),ms=(0,t.forwardRef)(u((function(e,n){var r=e.allowPinchZoom,i=e.as,o=void 0===i?"div":i,a=e.dangerouslyBypassFocusLock,s=void 0!==a&&a,l=e.dangerouslyBypassScrollLock,c=void 0!==l&&l,d=e.initialFocusRef,f=e.onClick,p=e.onDismiss,h=void 0===p?Zr:p,m=e.onKeyDown,g=e.onMouseDown,v=e.unstable_lockFocusAcrossFrames,y=us(e,ds),b=(0,t.useRef)(null),E=(0,t.useRef)(null),T=ii(E,n),w=(0,t.useCallback)((function(){d&&d.current&&d.current.focus()}),[d]);function C(e){b.current===e.target&&(e.stopPropagation(),h(e))}function x(e){"Escape"===e.key&&(e.stopPropagation(),h(e))}function S(e){b.current=e.target}return u(C,"handleClick"),u(x,"handleKeyDown"),u(S,"handleMouseDown"),(0,t.useEffect)((function(){return E.current?ys(E.current):void 0}),[]),(0,t.createElement)(ha,{autoFocus:!0,returnFocus:!0,onActivation:w,disabled:s,crossFrame:null==v||v},(0,t.createElement)(ns,{allowPinchZoom:r,enabled:!c},(0,t.createElement)(o,ls({},y,{ref:T,"data-reach-dialog-overlay":"",onClick:oi(f,C),onKeyDown:oi(m,x),onMouseDown:oi(g,S)}))))}),"DialogInner")),gs=(0,t.forwardRef)(u((function(e,n){var r=e.as,i=void 0===r?"div":r,o=e.onClick;e.onKeyDown;var a=us(e,fs);return(0,t.createElement)(i,ls({"aria-modal":"true",role:"dialog",tabIndex:-1},a,{ref:n,"data-reach-dialog-content":"",onClick:oi(o,(function(e){e.stopPropagation()}))}))}),"DialogContent")),vs=(0,t.forwardRef)(u((function(e,n){var r=e.allowPinchZoom,i=void 0!==r&&r,o=e.initialFocusRef,a=e.isOpen,s=e.onDismiss,l=void 0===s?Zr:s,u=us(e,ps);return(0,t.createElement)(hs,{allowPinchZoom:i,initialFocusRef:o,isOpen:a,onDismiss:l},(0,t.createElement)(gs,ls({ref:n},u)))}),"Dialog"));function ys(e){var t=[],n=[],r=Qr(e);return e?(Array.prototype.forEach.call(r.querySelectorAll("body > *"),(function(r){var i,o;if(r!==(null==(i=e.parentNode)||null==(o=i.parentNode)?void 0:o.parentNode)){var a=r.getAttribute("aria-hidden");null!==a&&"false"!==a||(t.push(a),n.push(r),r.setAttribute("aria-hidden","true"))}})),function(){n.forEach((function(e,n){var r=t[n];null===r?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r)}))}):Zr}function bs(){return(bs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Es(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}u(ys,"createAriaHider"),u(bs,"_extends$8"),u(Es,"_objectWithoutPropertiesLoose$8");var Ts=["as","style"],ws=(0,t.forwardRef)(u((function(e,n){var r=e.as,i=void 0===r?"span":r,o=e.style,a=void 0===o?{}:o,s=Es(e,Ts);return(0,t.createElement)(i,bs({ref:n,style:bs({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},a)},s))}),"VisuallyHidden")),Cs=Object.defineProperty;const xs=u((e,t)=>Cs(e,"name",{value:t,configurable:!0}),"__name$D")((e,t)=>Object.entries(t).reduce((e,t)=>{let[n,r]=t;return e[n]=r,e},e),"createComponentGroup"),Ss=(0,t.forwardRef)((e,t)=>te(vs,{...e,ref:t}));Ss.displayName="Dialog";const Ns=(0,t.forwardRef)((e,t)=>ne(Vr,{...e,ref:t,type:"button",className:jr("graphiql-dialog-close",e.className),children:[te(ws,{children:"Close dialog"}),te(ur,{})]}));Ns.displayName="Dialog.Close";const ks=xs(Ss,{Close:Ns});e.av=ks;var _s=!1,Os=0;function Is(){return++Os}function Ls(e){var n;if("function"==typeof t.useId){var r=(0,t.useId)(e);return null!=e?e:r}var i=null!=e?e:_s?Is():null,o=(0,t.useState)(i),a=o[0],s=o[1];return qr((function(){null===a&&s(Is())}),[]),(0,t.useEffect)((function(){!1===_s&&(_s=!0)}),[]),null!=(n=null!=e?e:a)?n:void 0}u(Is,"genId"),u(Ls,"useId");var As,Ds=["bottom","height","left","right","top","width"],Ms=u((function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),Ds.some((function(n){return e[n]!==t[n]}))}),"rectChanged"),Rs=new Map,Fs=u((function e(){var t=[];Rs.forEach((function(e,n){var r=n.getBoundingClientRect();Ms(r,e.rect)&&(e.rect=r,t.push(e))})),t.forEach((function(e){e.callbacks.forEach((function(t){return t(e.rect)}))})),As=window.requestAnimationFrame(e)}),"run");function Ps(e,t){return{observe:u((function(){var n=0===Rs.size;Rs.has(e)?Rs.get(e).callbacks.push(t):Rs.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),n&&Fs()}),"observe"),unobserve:u((function(){var n=Rs.get(e);if(n){var r=n.callbacks.indexOf(t);r>=0&&n.callbacks.splice(r,1),n.callbacks.length||Rs.delete(e),Rs.size||cancelAnimationFrame(As)}}),"unobserve")}}function js(e,n,r){var i,o,a;Yr(n)?i=n:(i=null==(a=null==n?void 0:n.observe)||a,o=null==n?void 0:n.onChange),Jr(r)&&(o=r);var s=(0,t.useState)(e.current),l=s[0],u=s[1],c=(0,t.useRef)(!1),d=(0,t.useRef)(!1),f=(0,t.useState)(null),p=f[0],h=f[1],m=(0,t.useRef)(o);return qr((function(){m.current=o,e.current!==l&&u(e.current)})),qr((function(){l&&!c.current&&(c.current=!0,h(l.getBoundingClientRect()))}),[l]),qr((function(){if(i){var t=l;if(d.current||(d.current=!0,t=e.current),t){var n=Ps(t,(function(e){null==m.current||m.current(e),h(e)}));return n.observe(),function(){n.unobserve()}}}}),[i,l,e]),p}u(Ps,"observeRect"),u(js,"useRect");var Vs=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],Us=Vs.join(","),Bs="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function $s(e,t){t=t||{};var n,r,i,o=[],a=[],s=e.querySelectorAll(Us);for(t.includeContainer&&Bs.call(e,Us)&&(s=Array.prototype.slice.apply(s)).unshift(e),n=0;n<s.length;n++)qs(r=s[n])&&(0===(i=Ks(r))?o.push(r):a.push({documentOrder:n,tabIndex:i,node:r}));return a.sort(Qs).map((function(e){return e.node})).concat(o)}function qs(e){return!(!Gs(e)||el(e)||Ks(e)<0)}function Hs(e){if(!e)throw new Error("No node provided");return!1!==Bs.call(e,Us)&&qs(e)}function Gs(e){return!(e.disabled||Xs(e)||rl(e))}u($s,"tabbable"),$s.isTabbable=Hs,$s.isFocusable=zs,u(qs,"isNodeMatchingSelectorTabbable"),u(Hs,"isTabbable"),u(Gs,"isNodeMatchingSelectorFocusable");var Ws=Vs.concat("iframe").join(",");function zs(e){if(!e)throw new Error("No node provided");return!1!==Bs.call(e,Ws)&&Gs(e)}function Ks(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?Ys(e)?0:e.tabIndex:t}function Qs(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function Ys(e){return"true"===e.contentEditable}function Js(e){return"INPUT"===e.tagName}function Xs(e){return Js(e)&&"hidden"===e.type}function Zs(e){return Js(e)&&"radio"===e.type}function el(e){return Zs(e)&&!nl(e)}function tl(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}function nl(e){if(!e.name)return!0;var t=tl(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}function rl(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}u(zs,"isFocusable"),u(Ks,"getTabindex"),u(Qs,"sortOrderedTabbables"),u(Ys,"isContentEditable"),u(Js,"isInput"),u(Xs,"isHiddenInput"),u(Zs,"isRadio"),u(el,"isNonTabbableRadio"),u(tl,"getCheckedRadio"),u(nl,"isTabbableRadio"),u(rl,"isHidden");var il=$s;function ol(){return(ol=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function al(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}u(ol,"_extends$7"),u(al,"_objectWithoutPropertiesLoose$7");var sl=["unstable_skipInitialPortalRender"],ll=["as","targetRef","position","unstable_observableRefs"],ul=(0,t.forwardRef)(u((function(e,n){var r=e.unstable_skipInitialPortalRender,i=al(e,sl);return(0,t.createElement)(Kr,{unstable_skipInitialRender:r},(0,t.createElement)(cl,ol({ref:n},i)))}),"Popover")),cl=(0,t.forwardRef)(u((function(e,n){var r=e.as,i=void 0===r?"div":r,o=e.targetRef,a=e.position,s=void 0===a?pl:a,l=e.unstable_observableRefs,u=void 0===l?[]:l,c=al(e,ll),d=(0,t.useRef)(null),f=js(d,{observe:!c.hidden}),p=js(o,{observe:!c.hidden}),h=ii(d,n);return gl(o,d),(0,t.createElement)(i,ol({"data-reach-popover":"",ref:h},c,{style:ol({position:"absolute"},dl.apply(void 0,[s,p,f].concat(u)),c.style)}))}),"PopoverImpl"));function dl(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];return n?e.apply(void 0,[t,n].concat(i.map((function(e){return e.current})))):{visibility:"hidden"}}function fl(e,t,n){return{top:n?e.top-t.height+window.pageYOffset+"px":e.top+e.height+window.pageYOffset+"px"}}u(dl,"getStyles$1"),u(fl,"getTopPosition");var pl=u((function(e,t){if(!e||!t)return{};var n=ml(e,t),r=n.directionRight,i=n.directionUp;return ol({left:r?e.right-t.width+window.pageXOffset+"px":e.left+window.pageXOffset+"px"},fl(e,t,i))}),"positionDefault"),hl=u((function(e,t){if(!e||!t)return{};var n=ml(e,t).directionUp;return ol({width:e.width,left:e.left},fl(e,t,n))}),"positionMatchWidth");function ml(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var i={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-n,bottom:window.innerHeight<e.bottom+t.height-r,left:e.left+e.width-t.width<0};return{directionRight:i.right&&!i.left,directionLeft:i.left&&!i.right,directionUp:i.bottom&&!i.top,directionDown:i.top&&!i.bottom}}function gl(e,n){var r=Qr(e.current);function i(e){"Tab"===e.key&&n.current&&0===il(n.current).length||("Tab"===e.key&&e.shiftKey?d(e)?f(e):p(e)?h(e):g(e)&&y():"Tab"===e.key&&(a()?s(e):l()?c(e):m(e)&&y()))}function o(){var t=il(r),i=t&&e.current?t.indexOf(e.current):-1,o=t&&t[i+1];return(!n.current||!n.current.contains(o||null))&&o}function a(){return!!e.current&&e.current===r.activeElement}function s(e){var t=n.current&&il(n.current);t&&t[0]&&(e.preventDefault(),t[0].focus())}function l(){if(n.current&&n.current.contains(r.activeElement||null)){var e=n.current&&il(n.current);return Boolean(e&&e[e.length-1]===r.activeElement)}return!1}function c(e){var t=o();t&&(e.preventDefault(),t.focus())}function d(e){if(e.shiftKey){var t=o();return e.target===t}}function f(e){var t=n.current&&il(n.current),r=t&&t[t.length-1];r&&(e.preventDefault(),r.focus())}function p(e){var t=n.current&&il(n.current);return!!t&&0!==t.length&&e.target===t[0]}function h(t){var n;t.preventDefault(),null==(n=e.current)||n.focus()}function m(e){var t=n.current?il(r).filter((function(e){return!n.current.contains(e)})):null;return!!t&&e.target===t[t.length-1]}function g(e){return e.target===il(r)[0]}u(i,"handleKeyDown"),(0,t.useEffect)((function(){return r.addEventListener("keydown",i),function(){r.removeEventListener("keydown",i)}}),[]),u(o,"getElementAfterTrigger"),u(a,"tabbedFromTriggerToPopover"),u(s,"focusFirstPopoverTabbable"),u(l,"tabbedOutOfPopover"),u(c,"focusTabbableAfterTrigger"),u(d,"shiftTabbedFromElementAfterTrigger"),u(f,"focusLastTabbableInPopover"),u(p,"shiftTabbedOutOfPopover"),u(h,"focusTriggerRef"),u(m,"tabbedToBrowserChrome"),u(g,"shiftTabbedToBrowserChrome");var v=[];function y(){var e=n.current&&il(n.current);e&&(e.forEach((function(e){v.push([e,e.tabIndex]),e.tabIndex=-1})),r.addEventListener("focusin",b))}function b(){r.removeEventListener("focusin",b),v.forEach((function(e){var t=e[0],n=e[1];t.tabIndex=n}))}u(y,"disableTabbablesInPopover"),u(b,"enableTabbablesInPopover")}function vl(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function yl(){return(yl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}u(ml,"getCollisions"),u(gl,"useSimulateTabNavigationForReactTree"),u(vl,"_objectWithoutPropertiesLoose$6"),u(yl,"_extends$6");var bl=["element","index"];function El(e,n){return void 0===n&&(n={}),(0,t.createContext)(yl({descendants:[],registerDescendant:Zr,unregisterDescendant:Zr},n))}function Tl(e,n,r){var i=Hr(),o=(0,t.useContext)(n),a=o.registerDescendant,s=o.unregisterDescendant,l=o.descendants,u=null!=r?r:l.findIndex((function(t){return t.element===e.element}));return qr((function(){return e.element||i(),a(yl({},e,{index:u})),function(){s(e.element)}}),[e,i,u,a,s].concat(Object.values(e))),u}function wl(){return(0,t.useState)([])}function Cl(e){return(0,t.useContext)(e).descendants}function xl(e){var n=e.context,r=e.children,i=e.items,o=e.set,a=(0,t.useCallback)((function(e){var t=e.element,n=e.index,r=vl(e,bl);t&&o((function(e){var i;if(null!=n)return[].concat(e,[yl({},r,{element:t,index:n})]).sort((function(e,t){return e.index-t.index}));if(0===e.length)i=[yl({},r,{element:t,index:0})];else if(e.find((function(e){return e.element===t})))i=e;else{var o=e.findIndex((function(e){return!(!e.element||!t)&&Boolean(e.element.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)})),a=yl({},r,{element:t,index:o});i=-1===o?[].concat(e,[a]):[].concat(e.slice(0,o),[a],e.slice(o))}return i.map((function(e,t){return yl({},e,{index:t})}))}))}),[]),s=(0,t.useCallback)((function(e){e&&o((function(t){return t.filter((function(t){return e!==t.element}))}))}),[]);return(0,t.createElement)(n.Provider,{value:(0,t.useMemo)((function(){return{descendants:i,registerDescendant:a,unregisterDescendant:s}}),[i,a,s])},r)}function Sl(e,n){var r=(0,t.useContext)(e).descendants,i=n.callback,o=n.currentIndex,a=n.filter,s=n.key,l=void 0===s?"index":s,c=n.orientation,d=void 0===c?"vertical":c,f=n.rotate,p=void 0===f||f,h=n.rtl,m=void 0!==h&&h;return u((function(e){if(["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(e.key)){var t=null!=o?o:-1,n=a?r.filter(a):r;if(n.length){var s=n.findIndex((function(e){return e.index===o}));switch(u(T,"getNextOption"),u(w,"getPreviousOption"),u(C,"getFirstOption"),u(x,"getLastOption"),e.key){case"ArrowDown":if("vertical"===d||"both"===d){e.preventDefault();var c=T();i("option"===l?c:c[l])}break;case"ArrowUp":if("vertical"===d||"both"===d){e.preventDefault();var f=w();i("option"===l?f:f[l])}break;case"ArrowLeft":if("horizontal"===d||"both"===d){e.preventDefault();var h=(m?T:w)();i("option"===l?h:h[l])}break;case"ArrowRight":if("horizontal"===d||"both"===d){e.preventDefault();var g=(m?w:T)();i("option"===l?g:g[l])}break;case"PageUp":e.preventDefault();var v=(e.ctrlKey?w:C)();i("option"===l?v:v[l]);break;case"Home":e.preventDefault();var y=C();i("option"===l?y:y[l]);break;case"PageDown":e.preventDefault();var b=(e.ctrlKey?T:x)();i("option"===l?b:b[l]);break;case"End":e.preventDefault();var E=x();i("option"===l?E:E[l])}}}function T(){return t===x().index?p?C():n[s]:n[(s+1)%n.length]}function w(){return t===C().index?p?x():n[s]:n[(s-1+n.length)%n.length]}function C(){return n[0]}function x(){return n[n.length-1]}}),"handleKeyDown")}function Nl(e){return"which"in e?3===e.which:"button"in e&&2===e.button}function kl(e,n){var r=(0,t.useRef)(n);return e((function(){r.current=n})),(0,t.useCallback)((function(){r.current&&r.current.apply(r,arguments)}),[])}function _l(e){return kl(t.useEffect,e)}function Ol(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}u(El,"createDescendantContext"),u(Tl,"useDescendant"),u(wl,"useDescendantsInit"),u(Cl,"useDescendants"),u(xl,"DescendantProvider"),u(Sl,"useDescendantKeyDown"),u(Nl,"isRightClick"),u(kl,"createStableCallbackHook"),u(_l,"useStableCallback"),u(Ol,"_objectWithoutPropertiesLoose$5");var Il,Ll,Al=["children"];function Dl(e,n){return(0,t.createContext)(n)}function Ml(e,n){var r=(0,t.createContext)(n);function i(e){var n=e.children,i=Ol(e,Al),o=(0,t.useMemo)((function(){return i}),Object.values(i));return(0,t.createElement)(r.Provider,{value:o},n)}function o(i){var o=(0,t.useContext)(r);if(o)return o;if(n)return n;throw Error(i+" must be rendered inside of a "+e+" component.")}return u(i,"Provider"),u(o,"useContext$1"),[i,o]}function Rl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return null!=e})).join("--")}function Fl(e,n){var r=(0,t.useState)(n),i=r[0],o=r[1];return[i,(0,t.useCallback)((function(t){e.current=t,o(t)}),[])]}u(Dl,"createNamedContext"),u(Ml,"createContext"),u(Rl,"makeId"),u(Fl,"useStatefulRefValue"),(Ll=Il||(Il={}))[Ll.NotStarted=0]="NotStarted",Ll[Ll.Running=1]="Running",Ll[Ll.Stopped=2]="Stopped";var Pl={type:"xstate.init"};function jl(e){return void 0===e?[]:[].concat(e)}function Vl(e){return{type:"xstate.assign",assignment:e}}function Ul(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function Bl(e){return function(t){return e===t}}function $l(e){return"string"==typeof e?{type:e}:e}function ql(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Bl(e)}}function Hl(e,t){void 0===t&&(t={});var n={config:e,_options:t,initialState:{value:e.initial,actions:jl(e.states[e.initial].entry).map((function(e){return Ul(e,t.actions)})),context:e.context,matches:Bl(e.initial)},transition:function(t,r){var i,o,a="string"==typeof t?{value:t,context:e.context}:t,s=a.value,l=a.context,c=$l(r),d=e.states[s];if(d.on){var f=jl(d.on[c.type]),p=u((function(t){if(void 0===t)return{value:ql(s,l)};var r="string"==typeof t?{target:t}:t,i=r.target,o=void 0===i?s:i,a=r.actions,u=void 0===a?[]:a,f=r.cond,p=l;if((void 0===f?function(){return!0}:f)(l,c)){var h=e.states[o],m=!1,g=[].concat(d.exit,u,h.entry).filter((function(e){return e})).map((function(e){return Ul(e,n._options.actions)})).filter((function(e){if("xstate.assign"===e.type){m=!0;var t=Object.assign({},p);return"function"==typeof e.assignment?t=e.assignment(p,c):Object.keys(e.assignment).forEach((function(n){t[n]="function"==typeof e.assignment[n]?e.assignment[n](p,c):e.assignment[n]})),p=t,!1}return!0}));return{value:{value:o,context:p,actions:g,changed:o!==s||g.length>0||m,matches:Bl(o)}}}}),"x");try{for(var h=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(f),m=h.next();!m.done;m=h.next()){var g=p(m.value);if("object"==typeof g)return g.value}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}}return ql(s,l)}};return n}u(jl,"e$1"),u(Vl,"r$1"),u(Ul,"i$1"),u(Bl,"o"),u($l,"a"),u(ql,"u"),u(Hl,"c$1");var Gl=u((function(e,t){return e.actions.forEach((function(n){var r=n.exec;return r&&r(e.context,t)}))}),"s");function Wl(e){var t=e.initialState,n=Il.NotStarted,r=new Set,i={_machine:e,send:function(i){n===Il.Running&&(t=e.transition(t,i),Gl(t,$l(i)),r.forEach((function(e){return e(t)})))},subscribe:function(e){return r.add(e),e(t),{unsubscribe:function(){return r.delete(e)}}},start:function(){return n=Il.Running,Gl(t,Pl),i},stop:function(){return n=Il.Stopped,r.clear(),i},get state(){return t},get status(){return n}};return i}function zl(e){var n=(0,t.useRef)();return n.current||(n.current={v:e()}),n.current.v}function Kl(){return(Kl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}u(Wl,"f$1"),u(zl,"useConstant"),u(Kl,"_extends$5");var Ql,Yl,Jl,Xl,Zl,eu=u((function(e){var t;return e.subscribe((function(e){t=e})).unsubscribe(),t}),"getServiceState");function tu(e,n,r){var i=(0,t.useRef)(e),o=zl((function(){return Wl(i.current).start()})),a=(0,t.useRef)(null),s=(0,t.useState)((function(){return eu(o)})),l=s[0],c=s[1],d=(0,t.useCallback)((function(e){var t=Xr(e)?{type:e}:e,r=nu(n);o.send(Kl({},t,{lastEventType:a.current,refs:r})),a.current=t.type}),[r]);return(0,t.useEffect)((function(){return o.subscribe(u((function(e){e.changed&&c(e)}),"setStateIfChanged")),function(){o.stop()}}),[o]),(0,t.useEffect)((function(){}),[r,l]),[(0,t.useMemo)((function(){return Kl({},l,{matches:u((function(e){return e===l.value}),"matches")})}),[l.changed,l.context,l.value]),d,o]}function nu(e){return Object.entries(e).reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r.current,e}),{})}function ru(e,t){return zl((function(){return Hl(e,t)}))}function iu(){return(iu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ou(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}u(tu,"useMachine"),u(nu,"unwrapRefs"),u(ru,"useCreateMachine"),u(iu,"_extends$4"),u(ou,"_objectWithoutPropertiesLoose$4"),(Jl=Yl||(Yl={})).Idle="IDLE",Jl.Open="OPEN",Jl.Navigating="NAVIGATING",Jl.Dragging="DRAGGING",Jl.Interacting="INTERACTING",(Zl=Xl||(Xl={})).ButtonMouseDown="BUTTON_MOUSE_DOWN",Zl.ButtonMouseUp="BUTTON_MOUSE_UP",Zl.Blur="BLUR",Zl.ClearNavSelection="CLEAR_NAV_SELECTION",Zl.ClearTypeahead="CLEAR_TYPEAHEAD",Zl.GetDerivedData="GET_DERIVED_DATA",Zl.KeyDownEscape="KEY_DOWN_ESCAPE",Zl.KeyDownEnter="KEY_DOWN_ENTER",Zl.KeyDownSpace="KEY_DOWN_SPACE",Zl.KeyDownNavigate="KEY_DOWN_NAVIGATE",Zl.KeyDownSearch="KEY_DOWN_SEARCH",Zl.KeyDownTab="KEY_DOWN_TAB",Zl.KeyDownShiftTab="KEY_DOWN_SHIFT_TAB",Zl.OptionTouchStart="OPTION_TOUCH_START",Zl.OptionMouseMove="OPTION_MOUSE_MOVE",Zl.OptionMouseEnter="OPTION_MOUSE_ENTER",Zl.OptionMouseDown="OPTION_MOUSE_DOWN",Zl.OptionMouseUp="OPTION_MOUSE_UP",Zl.OptionClick="OPTION_CLICK",Zl.ListMouseUp="LIST_MOUSE_UP",Zl.OptionPress="OPTION_PRESS",Zl.OutsideMouseDown="OUTSIDE_MOUSE_DOWN",Zl.OutsideMouseUp="OUTSIDE_MOUSE_UP",Zl.ValueChange="VALUE_CHANGE",Zl.PopoverPointerDown="POPOVER_POINTER_DOWN",Zl.PopoverPointerUp="POPOVER_POINTER_UP",Zl.UpdateAfterTypeahead="UPDATE_AFTER_TYPEAHEAD";var au=Vl({navigationValue:null}),su=Vl({typeaheadQuery:null}),lu=Vl({value:u((function(e,t){return t.value}),"value")}),uu=Vl({navigationValue:u((function(e,t){return t.value}),"navigationValue")}),cu=Vl({navigationValue:u((function(e){var t,n=_u(e.value,e.options);return n&&!n.disabled?e.value:(null==(t=e.options.find((function(e){return!e.disabled})))?void 0:t.value)||null}),"navigationValue")});function du(e,t){if(t.type===Xl.Blur){var n=t.refs,r=n.list,i=n.popover,o=t.relatedTarget,a=Qr(i);return!((null==a?void 0:a.activeElement)===r||!i||i.contains(o||(null==a?void 0:a.activeElement)))}return!1}function fu(e,t){if(t.type===Xl.OutsideMouseDown||t.type===Xl.OutsideMouseUp){var n=t.refs,r=n.button,i=n.popover,o=t.relatedTarget;return!(o===r||!r||r.contains(o)||!i||i.contains(o))}return!1}function pu(e,t){return!!e.options.find((function(t){return t.value===e.navigationValue}))}function hu(e,t){var n=t.refs,r=n.popover,i=n.list,o=t.relatedTarget;return!(r&&o&&r.contains(o)&&o!==i)&&pu(e)}function mu(e,t){requestAnimationFrame((function(){t.refs.list&&t.refs.list.focus()}))}function gu(e,t){t.refs.button&&t.refs.button.focus()}function vu(e,t){return!t.disabled}function yu(e,t){return t.type!==Xl.OptionTouchStart||!t||!t.disabled}function bu(e,t){return!("disabled"in t&&t.disabled||("value"in t?null==t.value:null==e.navigationValue))}function Eu(e,t){t.callback&&t.callback(t.value)}function Tu(e,t){if(t.type===Xl.KeyDownEnter){var n=t.refs.hiddenInput;if(n&&n.form){var r=n.form.querySelector("button:not([type]),[type='submit']");r&&r.click()}}}u(du,"listboxLostFocus"),u(fu,"clickedOutsideOfListbox"),u(pu,"optionIsActive"),u(hu,"shouldNavigate"),u(mu,"focusList"),u(gu,"focusButton"),u(vu,"listboxIsNotDisabled"),u(yu,"optionIsNavigable"),u(bu,"optionIsSelectable"),u(Eu,"selectOption"),u(Tu,"submitForm");var wu=Vl({typeaheadQuery:u((function(e,t){return(e.typeaheadQuery||"")+t.query}),"typeaheadQuery")}),Cu=Vl({value:u((function(e,t){if(t.type===Xl.UpdateAfterTypeahead&&t.query){var n=ku(e.options,t.query);if(n&&!n.disabled)return t.callback&&t.callback(n.value),n.value}return e.value}),"value")}),xu=Vl({navigationValue:u((function(e,t){if(t.type===Xl.UpdateAfterTypeahead&&t.query){var n=ku(e.options,t.query);if(n&&!n.disabled)return n.value}return e.navigationValue}),"navigationValue")}),Su=((Ql={})[Xl.GetDerivedData]={actions:Vl((function(e,t){return iu({},e,t.data)}))},Ql[Xl.ValueChange]={actions:[lu,Eu]},Ql),Nu=u((function(e){var t,n,r,i,o,a,s=e.value;return{id:"listbox",initial:Yl.Idle,context:{value:s,options:[],navigationValue:null,typeaheadQuery:null},states:(a={},a[Yl.Idle]={on:iu({},Su,(t={},t[Xl.ButtonMouseDown]={target:Yl.Open,actions:[cu],cond:vu},t[Xl.KeyDownSpace]={target:Yl.Navigating,actions:[cu,mu],cond:vu},t[Xl.KeyDownSearch]={target:Yl.Idle,actions:wu,cond:vu},t[Xl.UpdateAfterTypeahead]={target:Yl.Idle,actions:[Cu],cond:vu},t[Xl.ClearTypeahead]={target:Yl.Idle,actions:su},t[Xl.KeyDownNavigate]={target:Yl.Navigating,actions:[cu,su,mu],cond:vu},t[Xl.KeyDownEnter]={actions:[Tu],cond:vu},t))},a[Yl.Interacting]={entry:[au],on:iu({},Su,(n={},n[Xl.ClearNavSelection]={actions:[au,mu]},n[Xl.KeyDownEnter]={target:Yl.Idle,actions:[lu,su,gu,Eu],cond:bu},n[Xl.KeyDownSpace]={target:Yl.Idle,actions:[lu,su,gu,Eu],cond:bu},n[Xl.ButtonMouseDown]={target:Yl.Idle,actions:[gu]},n[Xl.KeyDownEscape]={target:Yl.Idle,actions:[gu]},n[Xl.OptionMouseDown]={target:Yl.Dragging},n[Xl.OutsideMouseDown]=[{target:Yl.Idle,cond:fu,actions:su},{target:Yl.Dragging,actions:su,cond:pu}],n[Xl.OutsideMouseUp]=[{target:Yl.Idle,cond:fu,actions:su},{target:Yl.Navigating,cond:pu},{target:Yl.Interacting,actions:su}],n[Xl.KeyDownEnter]=Yl.Interacting,n[Xl.Blur]=[{target:Yl.Idle,cond:du,actions:su},{target:Yl.Navigating,cond:hu},{target:Yl.Interacting,actions:su}],n[Xl.OptionTouchStart]={target:Yl.Navigating,actions:[uu,su],cond:yu},n[Xl.OptionClick]={target:Yl.Idle,actions:[lu,su,gu,Eu],cond:bu},n[Xl.OptionPress]={target:Yl.Idle,actions:[lu,su,gu,Eu],cond:bu},n[Xl.OptionMouseEnter]={target:Yl.Navigating,actions:[uu,su],cond:yu},n[Xl.KeyDownNavigate]={target:Yl.Navigating,actions:[uu,su,mu]},n))},a[Yl.Open]={on:iu({},Su,(r={},r[Xl.ClearNavSelection]={actions:[au]},r[Xl.KeyDownEnter]={target:Yl.Idle,actions:[lu,su,gu,Eu],cond:bu},r[Xl.KeyDownSpace]={target:Yl.Idle,actions:[lu,su,gu,Eu],cond:bu},r[Xl.ButtonMouseDown]={target:Yl.Idle,actions:[gu]},r[Xl.KeyDownEscape]={target:Yl.Idle,actions:[gu]},r[Xl.OptionMouseDown]={target:Yl.Dragging},r[Xl.OutsideMouseDown]=[{target:Yl.Idle,cond:fu,actions:su},{target:Yl.Dragging,cond:pu},{target:Yl.Interacting,actions:su}],r[Xl.OutsideMouseUp]=[{target:Yl.Idle,cond:fu,actions:su},{target:Yl.Navigating,cond:pu},{target:Yl.Interacting,actions:su}],r[Xl.Blur]=[{target:Yl.Idle,cond:du,actions:su},{target:Yl.Navigating,cond:hu},{target:Yl.Interacting,actions:su}],r[Xl.ButtonMouseUp]={target:Yl.Navigating,actions:[cu,mu]},r[Xl.ListMouseUp]={target:Yl.Navigating,actions:[cu,mu]},r[Xl.OptionTouchStart]={target:Yl.Navigating,actions:[uu,su],cond:yu},r[Xl.OptionClick]={target:Yl.Idle,actions:[lu,su,gu,Eu],cond:bu},r[Xl.OptionPress]={target:Yl.Idle,actions:[lu,su,gu,Eu],cond:bu},r[Xl.KeyDownNavigate]={target:Yl.Navigating,actions:[uu,su,mu]},r[Xl.KeyDownSearch]={target:Yl.Navigating,actions:wu},r[Xl.UpdateAfterTypeahead]={actions:[xu]},r[Xl.ClearTypeahead]={actions:su},r[Xl.OptionMouseMove]=[{target:Yl.Dragging,actions:[uu],cond:yu},{target:Yl.Dragging}],r))},a[Yl.Dragging]={on:iu({},Su,(i={},i[Xl.ClearNavSelection]={actions:[au]},i[Xl.KeyDownEnter]={target:Yl.Idle,actions:[lu,su,gu,Eu],cond:bu},i[Xl.KeyDownSpace]={target:Yl.Idle,actions:[lu,su,gu,Eu],cond:bu},i[Xl.ButtonMouseDown]={target:Yl.Idle,actions:[gu]},i[Xl.KeyDownEscape]={target:Yl.Idle,actions:[gu]},i[Xl.OptionMouseDown]={target:Yl.Dragging},i[Xl.OutsideMouseDown]=[{target:Yl.Idle,cond:fu,actions:su},{target:Yl.Navigating,cond:pu},{target:Yl.Interacting,actions:su}],i[Xl.OutsideMouseUp]=[{target:Yl.Idle,cond:fu,actions:su},{target:Yl.Navigating,cond:pu,actions:mu},{target:Yl.Interacting,actions:[su,mu]}],i[Xl.Blur]=[{target:Yl.Idle,cond:du,actions:su},{target:Yl.Navigating,cond:hu},{target:Yl.Interacting,actions:su}],i[Xl.ButtonMouseUp]={target:Yl.Navigating,actions:[cu,mu]},i[Xl.OptionTouchStart]={target:Yl.Navigating,actions:[uu,su],cond:yu},i[Xl.OptionClick]={target:Yl.Idle,actions:[lu,su,gu,Eu],cond:bu},i[Xl.OptionPress]={target:Yl.Idle,actions:[lu,su,gu,Eu],cond:bu},i[Xl.OptionMouseEnter]={target:Yl.Dragging,actions:[uu,su],cond:yu},i[Xl.KeyDownNavigate]={target:Yl.Navigating,actions:[uu,su,mu]},i[Xl.KeyDownSearch]={target:Yl.Navigating,actions:wu},i[Xl.UpdateAfterTypeahead]={actions:[xu]},i[Xl.ClearTypeahead]={actions:su},i[Xl.OptionMouseMove]=[{target:Yl.Navigating,actions:[uu],cond:yu},{target:Yl.Navigating}],i[Xl.OptionMouseUp]={target:Yl.Idle,actions:[lu,su,gu,Eu],cond:bu},i))},a[Yl.Navigating]={on:iu({},Su,(o={},o[Xl.ClearNavSelection]={actions:[au,mu]},o[Xl.KeyDownEnter]={target:Yl.Idle,actions:[lu,su,gu,Eu],cond:bu},o[Xl.KeyDownSpace]={target:Yl.Idle,actions:[lu,su,gu,Eu],cond:bu},o[Xl.ButtonMouseDown]={target:Yl.Idle,actions:[gu]},o[Xl.KeyDownEscape]={target:Yl.Idle,actions:[gu]},o[Xl.OptionMouseDown]={target:Yl.Dragging},o[Xl.OutsideMouseDown]=[{target:Yl.Idle,cond:fu,actions:su},{target:Yl.Navigating,cond:pu},{target:Yl.Interacting,actions:su}],o[Xl.OutsideMouseUp]=[{target:Yl.Idle,cond:fu,actions:su},{target:Yl.Navigating,cond:pu},{target:Yl.Interacting,actions:su}],o[Xl.Blur]=[{target:Yl.Idle,cond:du,actions:su},{target:Yl.Navigating,cond:hu},{target:Yl.Interacting,actions:su}],o[Xl.ButtonMouseUp]={target:Yl.Navigating,actions:[cu,mu]},o[Xl.OptionTouchStart]={target:Yl.Navigating,actions:[uu,su],cond:yu},o[Xl.OptionClick]={target:Yl.Idle,actions:[lu,su,gu,Eu],cond:bu},o[Xl.OptionPress]={target:Yl.Idle,actions:[lu,su,gu,Eu],cond:bu},o[Xl.OptionMouseEnter]={target:Yl.Navigating,actions:[uu,su],cond:yu},o[Xl.KeyDownNavigate]={target:Yl.Navigating,actions:[uu,su,mu]},o[Xl.KeyDownSearch]={target:Yl.Navigating,actions:wu},o[Xl.UpdateAfterTypeahead]={actions:[xu]},o[Xl.ClearTypeahead]={actions:su},o[Xl.OptionMouseMove]=[{target:Yl.Navigating,actions:[uu],cond:yu},{target:Yl.Navigating}],o))},a)}}),"createMachineDefinition");function ku(e,t){return void 0===t&&(t=""),t&&e.find((function(e){return!e.disabled&&e.label&&e.label.toLowerCase().startsWith(t.toLowerCase())}))||null}function _u(e,t){return e?t.find((function(t){return t.value===e})):void 0}u(ku,"findOptionFromTypeahead"),u(_u,"findOptionFromValue");var Ou=["as","aria-labelledby","aria-label","children","defaultValue","disabled","form","name","onChange","required","value","__componentName"],Iu=["arrow","button","children","portal"],Lu=["aria-label","arrow","as","children","onKeyDown","onMouseDown","onMouseUp"],Au=["as","children"],Du=["as","position","onBlur","onKeyDown","onMouseUp","portal","unstable_observableRefs"],Mu=["as"],Ru=["as","children","disabled","index","label","onClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseUp","onTouchStart","value"],Fu=El(),Pu=Dl(0,{}),ju=(0,t.forwardRef)(u((function(e,n){var r=e.as,i=void 0===r?"div":r,o=e["aria-labelledby"],a=e["aria-label"],s=e.children,l=e.defaultValue,c=e.disabled,d=void 0!==c&&c,f=e.form,p=e.name,h=e.onChange,m=e.required,g=e.value;e.__componentName;var v=ou(e,Ou),y=(0,t.useRef)(null!=g),b=wl(),E=b[0],T=b[1],w=(0,t.useRef)(null),C=(0,t.useRef)(null),x=(0,t.useRef)(null),S=(0,t.useRef)(null),N=(0,t.useRef)(null),k=(0,t.useRef)(null),_=(0,t.useRef)(null),O=tu(ru(Nu({value:(y.current?g:l)||null})),{button:w,hiddenInput:C,highlightedOption:x,input:S,list:N,popover:k,selectedOption:_},!1),I=O[0],L=O[1];function A(e){e!==I.context.value&&(null==h||h(e))}u(A,"handleValueChange");var D=Ls(v.id),M=v.id||Rl("listbox-input",D),R=ii(S,n),F=(0,t.useMemo)((function(){var e=E.find((function(e){return e.value===I.context.value}));return e?e.label:null}),[E,I.context.value]),P=Ku(I.value),j={ariaLabel:a,ariaLabelledBy:o,buttonRef:w,disabled:d,highlightedOptionRef:x,isExpanded:P,listboxId:M,listboxValueLabel:F,listRef:N,onValueChange:A,popoverRef:k,selectedOptionRef:_,send:L,state:I.value,stateData:I.context},V=(0,t.useRef)(!1);if(!y.current&&null==l&&!V.current&&E.length){V.current=!0;var U=E.find((function(e){return!e.disabled}));U&&U.value&&L({type:Xl.ValueChange,value:U.value})}return Xu(g,I.context.value,(function(){L({type:Xl.ValueChange,value:g})})),qr((function(){L({type:Xl.GetDerivedData,data:{options:E}})}),[E,L]),(0,t.useEffect)((function(){function e(e){var t=e.target,n=e.relatedTarget;Ju(k.current,t)||L({type:Xl.OutsideMouseDown,relatedTarget:n||t})}return u(e,"handleMouseDown"),P&&window.addEventListener("mousedown",e),function(){window.removeEventListener("mousedown",e)}}),[L,P]),(0,t.useEffect)((function(){function e(e){var t=e.target,n=e.relatedTarget;Ju(k.current,t)||L({type:Xl.OutsideMouseUp,relatedTarget:n||t})}return u(e,"handleMouseUp"),P&&window.addEventListener("mouseup",e),function(){window.removeEventListener("mouseup",e)}}),[L,P]),(0,t.createElement)(i,iu({},v,{ref:R,"data-reach-listbox-input":"","data-state":P?"expanded":"closed","data-value":I.context.value,id:M}),(0,t.createElement)(Pu.Provider,{value:j},(0,t.createElement)(xl,{context:Fu,items:E,set:T},Jr(s)?s({id:M,isExpanded:P,value:I.context.value,selectedOptionRef:_,highlightedOptionRef:x,valueLabel:F,expanded:P}):s,(f||p||m)&&(0,t.createElement)("input",{ref:C,"data-reach-listbox-hidden-input":"",disabled:d,form:f,name:p,readOnly:!0,required:m,tabIndex:-1,type:"hidden",value:I.context.value||""}))))}),"ListboxInput")),Vu=(0,t.forwardRef)(u((function(e,n){var r=e.arrow,i=void 0===r?"▼":r,o=e.button,a=e.children,s=e.portal,l=void 0===s||s,u=ou(e,Iu);return(0,t.createElement)(ju,iu({},u,{__componentName:"Listbox",ref:n}),(function(e){var n=e.value,r=e.valueLabel;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(Bu,{arrow:i,children:o?Jr(o)?o({value:n,label:r}):o:void 0}),(0,t.createElement)(Gu,{portal:l},(0,t.createElement)(Wu,null,a)))}))}),"Listbox")),Uu=(0,t.forwardRef)(u((function(e,n){var r=e["aria-label"],i=e.arrow,o=void 0!==i&&i,a=e.as,s=void 0===a?"span":a,l=e.children,c=e.onKeyDown,d=e.onMouseDown,f=e.onMouseUp,p=ou(e,Lu),h=(0,t.useContext)(Pu),m=h.buttonRef,g=h.send,v=h.ariaLabelledBy,y=h.disabled,b=h.isExpanded,E=h.listboxId,T=h.stateData,w=h.listboxValueLabel,C=T.value,x=ii(m,n),S=Qu();function N(e){Nl(e.nativeEvent)||(e.preventDefault(),e.stopPropagation(),g({type:Xl.ButtonMouseDown,disabled:y}))}function k(e){Nl(e.nativeEvent)||(e.preventDefault(),e.stopPropagation(),g({type:Xl.ButtonMouseUp}))}u(N,"handleMouseDown"),u(k,"handleMouseUp");var _=Rl("button",E),O=(0,t.useMemo)((function(){return l?Jr(l)?l({isExpanded:b,label:w,value:C,expanded:b}):l:w}),[l,w,b,C]);return(0,t.createElement)(s,iu({"aria-disabled":y||void 0,"aria-expanded":b||void 0,"aria-haspopup":"listbox","aria-labelledby":r?void 0:[v,_].filter(Boolean).join(" "),"aria-label":r,role:"button",tabIndex:y?-1:0},p,{ref:x,"data-reach-listbox-button":"",id:_,onKeyDown:oi(c,S),onMouseDown:oi(d,N),onMouseUp:oi(f,k)}),O,o&&(0,t.createElement)(qu,null,Yr(o)?null:o))}),"ListboxButton")),Bu=(0,t.memo)(Uu),$u=(0,t.forwardRef)(u((function(e,n){var r=e.as,i=void 0===r?"span":r,o=e.children,a=ou(e,Au),s=(0,t.useContext)(Pu).isExpanded;return(0,t.createElement)(i,iu({"aria-hidden":!0},a,{ref:n,"data-reach-listbox-arrow":"","data-expanded":s?"":void 0}),Jr(o)?o({isExpanded:s,expanded:s}):o||"▼")}),"ListboxArrow")),qu=(0,t.memo)($u),Hu=(0,t.forwardRef)(u((function(e,n){var r=e.as,i=void 0===r?"div":r,o=e.position,a=void 0===o?hl:o,s=e.onBlur,l=e.onKeyDown,c=e.onMouseUp,d=e.portal,f=void 0===d||d,p=e.unstable_observableRefs,h=ou(e,Du),m=(0,t.useContext)(Pu),g=m.isExpanded,v=m.buttonRef,y=m.popoverRef,b=m.send,E=ii(y,n),T=Qu();function w(){b({type:Xl.ListMouseUp})}u(w,"handleMouseUp");var C=iu({hidden:!g,tabIndex:-1},h,{ref:E,"data-reach-listbox-popover":"",onMouseUp:oi(c,w),onBlur:oi(s,x),onKeyDown:oi(l,T)});function x(e){var t=e.nativeEvent;requestAnimationFrame((function(){b({type:Xl.Blur,relatedTarget:t.relatedTarget||t.target})}))}return u(x,"handleBlur"),f?(0,t.createElement)(ul,iu({},C,{as:i,targetRef:v,position:a,unstable_observableRefs:p,unstable_skipInitialPortalRender:!0})):(0,t.createElement)(i,C)}),"ListboxPopover")),Gu=(0,t.memo)(Hu),Wu=(0,t.forwardRef)(u((function(e,n){var r=e.as,i=void 0===r?"ul":r,o=ou(e,Mu),a=(0,t.useContext)(Pu),s=a.listRef,l=a.ariaLabel,u=a.ariaLabelledBy,c=a.isExpanded,d=a.listboxId,f=a.stateData,p=f.value,h=f.navigationValue,m=ii(n,s);return(0,t.createElement)(i,iu({"aria-activedescendant":Yu(c?h:p),"aria-labelledby":l?void 0:u,"aria-label":l,role:"listbox",tabIndex:-1},o,{ref:m,"data-reach-listbox-list":"",id:Rl("listbox",d)}))}),"ListboxList")),zu=(0,t.forwardRef)(u((function(e,n){var r=e.as,i=void 0===r?"li":r,o=e.children,a=e.disabled,s=e.index,l=e.label,c=e.onClick,d=e.onMouseDown,f=e.onMouseEnter,p=e.onMouseLeave,h=e.onMouseMove,m=e.onMouseUp,g=e.onTouchStart,v=e.value,y=ou(e,Ru),b=(0,t.useContext)(Pu),E=b.highlightedOptionRef,T=b.selectedOptionRef,w=b.send,C=b.isExpanded,x=b.onValueChange,S=b.state,N=b.stateData,k=N.value,_=N.navigationValue,O=(0,t.useState)(l),I=O[0],L=O[1],A=l||I||"",D=Fl((0,t.useRef)(null),null),M=D[0],R=D[1];Tl((0,t.useMemo)((function(){return{element:M,value:v,label:A,disabled:!!a}}),[a,M,A,v]),Fu,s);var F=(0,t.useCallback)((function(e){!l&&e&&L((function(t){return e.textContent&&t!==e.textContent?e.textContent:t||""}))}),[l]),P=!!_&&_===v,j=k===v,V=ii(F,n,R,j?T:null,P?E:null);function U(){w({type:Xl.OptionMouseEnter,value:v,disabled:!!a})}function B(){w({type:Xl.OptionTouchStart,value:v,disabled:!!a})}function $(){w({type:Xl.ClearNavSelection})}function q(e){Nl(e.nativeEvent)||(e.preventDefault(),w({type:Xl.OptionMouseDown}))}function H(e){Nl(e.nativeEvent)||w({type:Xl.OptionMouseUp,value:v,callback:x,disabled:!!a})}function G(e){Nl(e.nativeEvent)||w({type:Xl.OptionClick,value:v,callback:x,disabled:!!a})}function W(){S!==Yl.Open&&_===v||w({type:Xl.OptionMouseMove,value:v,disabled:!!a})}return u(U,"handleMouseEnter"),u(B,"handleTouchStart"),u($,"handleMouseLeave"),u(q,"handleMouseDown"),u(H,"handleMouseUp"),u(G,"handleClick"),u(W,"handleMouseMove"),(0,t.createElement)(i,iu({"aria-selected":(C?P:j)||void 0,"aria-disabled":a||void 0,role:"option"},y,{ref:V,id:Yu(v),"data-reach-listbox-option":"","data-current-nav":P?"":void 0,"data-current-selected":j?"":void 0,"data-label":A,"data-value":v,onClick:oi(c,G),onMouseDown:oi(d,q),onMouseEnter:oi(f,U),onMouseLeave:oi(p,$),onMouseMove:oi(h,W),onMouseUp:oi(m,H),onTouchStart:oi(g,B)}),o)}),"ListboxOption"));function Ku(e){return[Yl.Navigating,Yl.Open,Yl.Dragging,Yl.Interacting].includes(e)}function Qu(){var e=(0,t.useContext)(Pu),n=e.send,r=e.disabled,i=e.onValueChange,o=e.stateData,a=o.navigationValue,s=o.typeaheadQuery,l=Cl(Fu),c=_l(i);(0,t.useEffect)((function(){s&&n({type:Xl.UpdateAfterTypeahead,query:s,callback:c});var e=window.setTimeout((function(){null!=s&&n({type:Xl.ClearTypeahead})}),1e3);return function(){window.clearTimeout(e)}}),[c,n,s]);var d=l.findIndex((function(e){return e.value===a}));return oi((function(e){var t=e.key,o=Xr(t)&&1===t.length,s=l.find((function(e){return e.value===a}));switch(t){case"Enter":return void n({type:Xl.KeyDownEnter,value:a,callback:i,disabled:!!(null!=s&&s.disabled||r)});case" ":return e.preventDefault(),void n({type:Xl.KeyDownSpace,value:a,callback:i,disabled:!!(null!=s&&s.disabled||r)});case"Escape":return void n({type:Xl.KeyDownEscape});case"Tab":var u=e.shiftKey?Xl.KeyDownShiftTab:Xl.KeyDownTab;return void n({type:u});default:return void(o&&n({type:Xl.KeyDownSearch,query:t,disabled:r}))}}),Sl(Fu,{currentIndex:d,orientation:"vertical",key:"index",rotate:!0,filter:u((function(e){return!e.disabled}),"filter"),callback:u((function(e){n({type:Xl.KeyDownNavigate,value:l[e].value,disabled:r})}),"callback")}))}function Yu(e){var n=(0,t.useContext)(Pu).listboxId;return e?Rl("option-"+e,n):void 0}function Ju(e,t){return!(!e||!e.contains(t))}function Xu(e,n,r){(0,t.useRef)(null!=e).current&&e!==n&&r()}function Zu(e){var n=(0,t.useRef)(null);return(0,t.useEffect)((function(){n.current=e}),[e]),n.current}function ec(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function tc(){return(tc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}u(Ku,"isListboxExpanded"),u(Qu,"useKeyDown$1"),u(Yu,"useOptionId"),u(Ju,"popoverContainsEventTarget$1"),u(Xu,"useControlledStateSync"),u(Zu,"usePrevious"),u(ec,"_objectWithoutPropertiesLoose$3"),u(tc,"_extends$3");var nc=["onKeyDown","onMouseDown","id","ref"],rc=["index","isLink","onClick","onDragStart","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseUp","onSelect","disabled","onFocus","valueText","ref"],ic=["id","onKeyDown","ref"],oc=["onBlur","portal","position","ref"],ac=El(),sc=Ml("Dropdown"),lc=sc[0],uc=sc[1],cc={triggerId:null,isExpanded:!1,typeaheadQuery:"",selectionIndex:-1},dc=u((function(e){var n=e.id,r=e.children,i=(0,t.useRef)(null),o=(0,t.useRef)(null),a=(0,t.useRef)(null),s=wl(),l=s[0],u=s[1],c=Ls(n),d=n||Rl("menu",c),f=Rl("menu-button",d),p=(0,t.useReducer)(Ec,tc({},cc,{triggerId:f})),h=p[0],m=p[1],g=(0,t.useRef)(!1),v=(0,t.useRef)([]),y=(0,t.useRef)(!1),b=(0,t.useRef)({x:0,y:0});return(0,t.useEffect)((function(){h.isExpanded?(window.__REACH_DISABLE_TOOLTIPS=!0,window.requestAnimationFrame((function(){yc(o.current)}))):window.__REACH_DISABLE_TOOLTIPS=!1}),[h.isExpanded]),(0,t.createElement)(xl,{context:ac,items:l,set:u},(0,t.createElement)(lc,{dispatch:m,dropdownId:d,dropdownRef:o,mouseDownStartPosRef:b,popoverRef:a,readyToSelect:y,selectCallbacks:v,state:h,triggerClickedRef:g,triggerRef:i},Jr(r)?r({isExpanded:h.isExpanded,isOpen:h.isExpanded}):r))}),"DropdownProvider_");function fc(e){var n=e.onKeyDown,r=e.onMouseDown,i=e.id,o=e.ref,a=ec(e,nc),s=uc("useDropdownTrigger"),l=s.dispatch,c=s.dropdownId,d=s.mouseDownStartPosRef,f=s.triggerClickedRef,p=s.triggerRef,h=s.state,m=h.triggerId,g=h.isExpanded,v=ii(p,o),y=Tc(),b=(0,t.useMemo)((function(){return y.findIndex((function(e){return!e.disabled}))}),[y]);function E(e){switch(e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),l({type:"OPEN_MENU_AT_INDEX",payload:{index:b}});break;case"Enter":case" ":l({type:"OPEN_MENU_AT_INDEX",payload:{index:b}})}}function T(e){Nl(e.nativeEvent)||(d.current={x:e.clientX,y:e.clientY},g||(f.current=!0),l(g?{type:"CLOSE_MENU"}:{type:"OPEN_MENU_CLEARED"}))}return(0,t.useEffect)((function(){null!=i&&i!==m&&l({type:"SET_BUTTON_ID",payload:i})}),[m,l,i]),u(E,"handleKeyDown"),u(T,"handleMouseDown"),{data:{isExpanded:g,controls:c},props:tc({},a,{ref:v,id:m||void 0,onKeyDown:oi(n,E),onMouseDown:oi(r,T),type:"button"})}}function pc(e){var n=e.index,r=e.isLink,i=void 0!==r&&r,o=e.onClick,a=e.onDragStart,s=e.onMouseDown,l=e.onMouseEnter,c=e.onMouseLeave,d=e.onMouseMove,f=e.onMouseUp,p=e.onSelect,h=e.disabled,m=e.onFocus,g=e.valueText,v=e.ref,y=ec(e,rc),b=uc("useDropdownItem"),E=b.dispatch,T=b.dropdownRef,w=b.mouseDownStartPosRef,C=b.readyToSelect,x=b.selectCallbacks,S=b.triggerRef,N=b.state,k=N.selectionIndex,_=N.isExpanded,O=(0,t.useRef)(null),I=(0,t.useState)(g||""),L=I[0],A=I[1],D=(0,t.useCallback)((function(e){!g&&null!=e&&e.textContent&&A(e.textContent)}),[g]),M=(0,t.useRef)(!1),R=Fl(O,null),F=R[0],P=R[1],j=Tl((0,t.useMemo)((function(){return{element:F,key:L,disabled:h,isLink:i}}),[h,F,i,L]),ac,n),V=j===k&&!h,U=ii(v,P,D);function B(){yc(S.current),p&&p(),E({type:"CLICK_MENU_ITEM"})}function $(e){Nl(e.nativeEvent)||i&&(h?e.preventDefault():B())}function q(e){i&&e.preventDefault()}function H(e){Nl(e.nativeEvent)||(i?M.current=!0:e.preventDefault())}function G(e){var t=Qr(T.current);V||null==j||h||(null!=T&&T.current&&T.current!==t.activeElement&&O.current!==t.activeElement&&T.current.focus(),E({type:"SELECT_ITEM_AT_INDEX",payload:{index:j}}))}function W(e){E({type:"CLEAR_SELECTION_INDEX"})}function z(e){if(!C.current){var t=Math.abs(e.clientX-w.current.x),n=Math.abs(e.clientY-w.current.y);(t>8||n>8)&&(C.current=!0)}V||null==j||h||E({type:"SELECT_ITEM_AT_INDEX",payload:{index:j,dropdownRef:T}})}function K(){C.current=!0,V||null==j||h||E({type:"SELECT_ITEM_AT_INDEX",payload:{index:j}})}function Q(e){Nl(e.nativeEvent)||(C.current?i?M.current?M.current=!1:O.current&&O.current.click():h||B():C.current=!0)}return x.current[j]=p,u(B,"select"),u($,"handleClick"),u(q,"handleDragStart"),u(H,"handleMouseDown"),u(G,"handleMouseEnter"),u(W,"handleMouseLeave"),u(z,"handleMouseMove"),u(K,"handleFocus"),u(Q,"handleMouseUp"),(0,t.useEffect)((function(){if(_){var e=window.setTimeout((function(){C.current=!0}),400);return function(){window.clearTimeout(e)}}C.current=!1}),[_,C]),(0,t.useEffect)((function(){var e=Qr(O.current);return e.addEventListener("mouseup",t),function(){e.removeEventListener("mouseup",t)};function t(){M.current=!1}}),[]),{data:{disabled:h},props:tc({id:vc(j),tabIndex:-1},y,{ref:U,"data-disabled":h?"":void 0,"data-selected":V?"":void 0,"data-valuetext":L,onClick:oi(o,$),onDragStart:oi(a,q),onMouseDown:oi(s,H),onMouseEnter:oi(l,G),onMouseLeave:oi(c,W),onMouseMove:oi(d,z),onFocus:oi(m,K),onMouseUp:oi(f,Q)})}}function hc(e){e.id;var n=e.onKeyDown,r=e.ref,i=ec(e,ic),o=uc("useDropdownItems"),a=o.dispatch,s=o.triggerRef,l=o.dropdownRef,c=o.selectCallbacks,d=o.dropdownId,f=o.state,p=f.isExpanded,h=f.triggerId,m=f.selectionIndex,g=f.typeaheadQuery,v=Tc(),y=ii(l,r);(0,t.useEffect)((function(){var e=gc(v,g);g&&null!=e&&a({type:"SELECT_ITEM_AT_INDEX",payload:{index:e,dropdownRef:l}});var t=window.setTimeout((function(){return g&&a({type:"SEARCH_FOR_ITEM",payload:""})}),1e3);return function(){return window.clearTimeout(t)}}),[a,v,g,l]);var b=Zu(v.length),E=Zu(v[m]),T=Zu(m);(0,t.useEffect)((function(){m>v.length-1?a({type:"SELECT_ITEM_AT_INDEX",payload:{index:v.length-1,dropdownRef:l}}):b!==v.length&&m>-1&&E&&T===m&&v[m]!==E&&a({type:"SELECT_ITEM_AT_INDEX",payload:{index:v.findIndex((function(e){return e.key===(null==E?void 0:E.key)})),dropdownRef:l}})}),[l,a,v,b,E,T,m]);var w=oi(u((function(e){var t=e.key;if(p)switch(t){case"Enter":case" ":var n=v.find((function(e){return e.index===m}));n&&!n.disabled&&(e.preventDefault(),n.isLink&&n.element?n.element.click():(yc(s.current),c.current[n.index]&&c.current[n.index](),a({type:"CLICK_MENU_ITEM"})));break;case"Escape":yc(s.current),a({type:"CLOSE_MENU"});break;case"Tab":e.preventDefault();break;default:if(Xr(t)&&1===t.length){var r=g+t.toLowerCase();a({type:"SEARCH_FOR_ITEM",payload:r})}}}),"handleKeyDown"),Sl(ac,{currentIndex:m,orientation:"vertical",rotate:!1,filter:u((function(e){return!e.disabled}),"filter"),callback:u((function(e){a({type:"SELECT_ITEM_AT_INDEX",payload:{index:e,dropdownRef:l}})}),"callback"),key:"index"}));return{data:{activeDescendant:vc(m)||void 0,triggerId:h},props:tc({tabIndex:-1},i,{ref:y,id:d,onKeyDown:oi(n,w)})}}function mc(e){var n=e.onBlur,r=e.portal,i=void 0===r||r,o=e.position,a=e.ref,s=ec(e,oc),l=uc("useDropdownPopover"),c=l.triggerRef,d=l.triggerClickedRef,f=l.dispatch,p=l.dropdownRef,h=l.popoverRef,m=l.state.isExpanded,g=ii(h,a);return(0,t.useEffect)((function(){if(m){var e=Qr(h.current);return u(t,"listener"),e.addEventListener("mousedown",t),function(){e.removeEventListener("mousedown",t)}}function t(e){d.current?d.current=!1:bc(h.current,e.target)||f({type:"CLOSE_MENU"})}}),[d,c,f,p,h,m]),{data:{portal:i,position:o,targetRef:c,isExpanded:m},props:tc({ref:g,hidden:!m,onBlur:oi(n,(function(e){e.currentTarget.contains(e.relatedTarget)||f({type:"CLOSE_MENU"})}))},s)}}function gc(e,t){if(void 0===t&&(t=""),!t)return null;var n=e.find((function(e){var n,r,i;return!e.disabled&&(null==(n=e.element)||null==(r=n.dataset)||null==(i=r.valuetext)?void 0:i.toLowerCase().startsWith(t))}));return n?e.indexOf(n):null}function vc(e){var t=uc("useItemId").dropdownId;return null!=e&&e>-1?Rl("option-"+e,t):void 0}function yc(e){e&&e.focus()}function bc(e,t){return!(!e||!e.contains(t))}function Ec(e,t){switch(void 0===t&&(t={}),t.type){case"CLICK_MENU_ITEM":case"CLOSE_MENU":return tc({},e,{isExpanded:!1,selectionIndex:-1});case"OPEN_MENU_AT_FIRST_ITEM":return tc({},e,{isExpanded:!0,selectionIndex:0});case"OPEN_MENU_AT_INDEX":return tc({},e,{isExpanded:!0,selectionIndex:t.payload.index});case"OPEN_MENU_CLEARED":return tc({},e,{isExpanded:!0,selectionIndex:-1});case"SELECT_ITEM_AT_INDEX":var n=t.payload.dropdownRef,r=void 0===n?{current:null}:n;if(t.payload.index>=0&&t.payload.index!==e.selectionIndex){if(r.current){var i=Qr(r.current);r.current!==(null==i?void 0:i.activeElement)&&r.current.focus()}return tc({},e,{selectionIndex:null!=t.payload.max?Math.min(Math.max(t.payload.index,0),t.payload.max):Math.max(t.payload.index,0)})}return e;case"CLEAR_SELECTION_INDEX":return tc({},e,{selectionIndex:-1});case"SET_BUTTON_ID":return tc({},e,{triggerId:t.payload});case"SEARCH_FOR_ITEM":return void 0!==t.payload?tc({},e,{typeaheadQuery:t.payload}):e;default:return e}}function Tc(){return Cl(ac)}u(fc,"useDropdownTrigger"),u(pc,"useDropdownItem"),u(hc,"useDropdownItems"),u(mc,"useDropdownPopover"),u(gc,"findItemFromTypeahead"),u(vc,"useItemId"),u(yc,"focus"),u(bc,"popoverContainsEventTarget"),u(Ec,"reducer$1"),u(Tc,"useDropdownDescendants");var wc={exports:{}},Cc={},xc="function"==typeof Symbol&&Symbol.for,Sc=xc?Symbol.for("react.element"):60103,Nc=xc?Symbol.for("react.portal"):60106,kc=xc?Symbol.for("react.fragment"):60107,_c=xc?Symbol.for("react.strict_mode"):60108,Oc=xc?Symbol.for("react.profiler"):60114,Ic=xc?Symbol.for("react.provider"):60109,Lc=xc?Symbol.for("react.context"):60110,Ac=xc?Symbol.for("react.async_mode"):60111,Dc=xc?Symbol.for("react.concurrent_mode"):60111,Mc=xc?Symbol.for("react.forward_ref"):60112,Rc=xc?Symbol.for("react.suspense"):60113,Fc=xc?Symbol.for("react.suspense_list"):60120,Pc=xc?Symbol.for("react.memo"):60115,jc=xc?Symbol.for("react.lazy"):60116,Vc=xc?Symbol.for("react.block"):60121,Uc=xc?Symbol.for("react.fundamental"):60117,Bc=xc?Symbol.for("react.responder"):60118,$c=xc?Symbol.for("react.scope"):60119;function qc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Sc:switch(e=e.type){case Ac:case Dc:case kc:case Oc:case _c:case Rc:return e;default:switch(e=e&&e.$$typeof){case Lc:case Mc:case jc:case Pc:case Ic:return e;default:return t}}case Nc:return t}}}function Hc(e){return qc(e)===Dc}function Gc(){return(Gc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Wc(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}u(qc,"z"),u(Hc,"A"),Cc.AsyncMode=Ac,Cc.ConcurrentMode=Dc,Cc.ContextConsumer=Lc,Cc.ContextProvider=Ic,Cc.Element=Sc,Cc.ForwardRef=Mc,Cc.Fragment=kc,Cc.Lazy=jc,Cc.Memo=Pc,Cc.Portal=Nc,Cc.Profiler=Oc,Cc.StrictMode=_c,Cc.Suspense=Rc,Cc.isAsyncMode=function(e){return Hc(e)||qc(e)===Ac},Cc.isConcurrentMode=Hc,Cc.isContextConsumer=function(e){return qc(e)===Lc},Cc.isContextProvider=function(e){return qc(e)===Ic},Cc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Sc},Cc.isForwardRef=function(e){return qc(e)===Mc},Cc.isFragment=function(e){return qc(e)===kc},Cc.isLazy=function(e){return qc(e)===jc},Cc.isMemo=function(e){return qc(e)===Pc},Cc.isPortal=function(e){return qc(e)===Nc},Cc.isProfiler=function(e){return qc(e)===Oc},Cc.isStrictMode=function(e){return qc(e)===_c},Cc.isSuspense=function(e){return qc(e)===Rc},Cc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===kc||e===Dc||e===Oc||e===_c||e===Rc||e===Fc||"object"==typeof e&&null!==e&&(e.$$typeof===jc||e.$$typeof===Pc||e.$$typeof===Ic||e.$$typeof===Lc||e.$$typeof===Mc||e.$$typeof===Uc||e.$$typeof===Bc||e.$$typeof===$c||e.$$typeof===Vc)},Cc.typeOf=qc,wc.exports=Cc,u(Gc,"_extends$2"),u(Wc,"_objectWithoutPropertiesLoose$2");var zc=["as","id","children"],Kc=["as"],Qc=["as"],Yc=["as"],Jc=["as"],Xc=["portal"],Zc=["as"],ed=(0,t.forwardRef)((function(e,n){var r=e.as,i=void 0===r?t.Fragment:r,o=e.id,a=e.children,s=Wc(e,zc),l=(0,t.useMemo)((function(){try{return wc.exports.isFragment((0,t.createElement)(i,null))}catch(e){return!1}}),[i])?{}:Gc({ref:n,id:o,"data-reach-menu":""},s);return(0,t.createElement)(i,l,(0,t.createElement)(dc,{id:o,children:a}))})),td=(0,t.forwardRef)((function(e,n){var r=e.as,i=void 0===r?"button":r,o=fc(Gc({},Wc(e,Kc),{ref:n})),a=o.data,s=a.isExpanded,l=a.controls,u=o.props;return(0,t.createElement)(i,Gc({"aria-expanded":!!s||void 0,"aria-haspopup":!0,"aria-controls":l},u,{"data-reach-menu-button":""}))})),nd=(0,t.forwardRef)((function(e,n){var r=e.as,i=void 0===r?"div":r,o=pc(Gc({},Wc(e,Qc),{ref:n})),a=o.data.disabled,s=o.props;return(0,t.createElement)(i,Gc({role:"menuitem"},s,{"aria-disabled":a||void 0,"data-reach-menu-item":""}))})),rd=(0,t.forwardRef)((function(e,n){var r=e.as,i=void 0===r?"div":r,o=Wc(e,Yc);return(0,t.createElement)(nd,Gc({},o,{ref:n,as:i}))})),id=(0,t.forwardRef)((function(e,n){var r=e.as,i=void 0===r?"div":r,o=hc(Gc({},Wc(e,Jc),{ref:n})),a=o.data,s=a.activeDescendant,l=a.triggerId,u=o.props;return(0,t.createElement)(i,Gc({"aria-activedescendant":s,"aria-labelledby":l||void 0,role:"menu"},u,{"data-reach-menu-items":""}))})),od=(0,t.forwardRef)((function(e,n){var r=e.portal,i=void 0===r||r,o=Wc(e,Xc);return(0,t.createElement)(ad,{portal:i},(0,t.createElement)(id,Gc({},o,{ref:n,"data-reach-menu-list":""})))})),ad=(0,t.forwardRef)((function(e,n){var r=e.as,i=void 0===r?"div":r,o=mc(Gc({},Wc(e,Zc),{ref:n})),a=o.data,s=a.portal,l=a.targetRef,u=a.position,c=o.props,d={"data-reach-menu-popover":""};return s?(0,t.createElement)(ul,Gc({},c,d,{as:i,targetRef:l,position:u,unstable_skipInitialPortalRender:!0})):(0,t.createElement)(i,Gc({},c,d))}));const sd=(0,t.forwardRef)((e,t)=>te(td,{...e,ref:t,className:jr("graphiql-un-styled",e.className)}));sd.displayName="MenuButton";const ld=xs(ed,{Button:sd,Item:rd,List:od});e.aw=ld;const ud=(0,t.forwardRef)((e,t)=>te(Bu,{...e,ref:t,className:jr("graphiql-un-styled",e.className)}));ud.displayName="ListboxButton";const cd=xs(Vu,{Button:ud,Input:ju,Option:zu,Popover:Gu});e.ax=cd;var dd={},fd={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",Ffr:"𝔉",ffr:"𝔣",filig:"ﬁ",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"ﬂ",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"Ĳ",ijlig:"ĳ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ŉ",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},pd=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,hd={},md={};function gd(e){var t,n,r=md[e];if(r)return r;for(r=md[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function vd(e,t,n){var r,i,o,a,s,l="";for("string"!=typeof t&&(n=t,t=vd.defaultChars),void 0===n&&(n=!0),s=gd(t),r=0,i=e.length;r<i;r++)if(o=e.charCodeAt(r),n&&37===o&&r+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3)))l+=e.slice(r,r+3),r+=2;else if(o<128)l+=s[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1<i&&(a=e.charCodeAt(r+1))>=56320&&a<=57343){l+=encodeURIComponent(e[r]+e[r+1]),r++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[r]);return l}u(gd,"getEncodeCache"),u(vd,"encode$1"),vd.defaultChars=";/?:@&=+$,-_.!~*'()#",vd.componentChars="-_.!~*'()";var yd=vd,bd={};function Ed(e){var t,n,r=bd[e];if(r)return r;for(r=bd[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t<e.length;t++)r[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function Td(e,t){var n;return"string"!=typeof t&&(t=Td.defaultChars),n=Ed(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,r,i,o,a,s,l,u="";for(t=0,r=e.length;t<r;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?u+=n[i]:192==(224&i)&&t+3<r&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(u+=(l=i<<6&1984|63&o)<128?"��":String.fromCharCode(l),t+=3):224==(240&i)&&t+6<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(u+=(l=i<<12&61440|o<<6&4032|63&a)<2048||l>=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&i)&&t+9<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&s))?((l=i<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||l>1114111?u+="����":(l-=65536,u+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):u+="�";return u}))}u(Ed,"getDecodeCache"),u(Td,"decode$1"),Td.defaultChars=";/?:@&=+$,#",Td.componentChars="";var wd=Td,Cd=u((function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}),"format");function xd(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}u(xd,"Url");var Sd=/^([a-z0-9.+-]+:)/i,Nd=/:[0-9]*$/,kd=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,_d=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Od=["'"].concat(_d),Id=["%","/","?",";","#"].concat(Od),Ld=["/","?","#"],Ad=/^[+a-z0-9A-Z_-]{0,63}$/,Dd=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Md={javascript:!0,"javascript:":!0},Rd={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Fd(e,t){if(e&&e instanceof xd)return e;var n=new xd;return n.parse(e,t),n}u(Fd,"urlParse"),xd.prototype.parse=function(e,t){var n,r,i,o,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var l=kd.exec(s);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var u=Sd.exec(s);if(u&&(i=(u=u[0]).toLowerCase(),this.protocol=u,s=s.substr(u.length)),(t||u||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||u&&Md[u]||(s=s.substr(2),this.slashes=!0)),!Md[u]&&(a||u&&!Rd[u])){var c,d,f=-1;for(n=0;n<Ld.length;n++)-1!==(o=s.indexOf(Ld[n]))&&(-1===f||o<f)&&(f=o);for(-1!==(d=-1===f?s.lastIndexOf("@"):s.lastIndexOf("@",f))&&(c=s.slice(0,d),s=s.slice(d+1),this.auth=c),f=-1,n=0;n<Id.length;n++)-1!==(o=s.indexOf(Id[n]))&&(-1===f||o<f)&&(f=o);-1===f&&(f=s.length),":"===s[f-1]&&f--;var p=s.slice(0,f);s=s.slice(f),this.parseHost(p),this.hostname=this.hostname||"";var h="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!h){var m=this.hostname.split(/\./);for(n=0,r=m.length;n<r;n++){var g=m[n];if(g&&!g.match(Ad)){for(var v="",y=0,b=g.length;y<b;y++)g.charCodeAt(y)>127?v+="x":v+=g[y];if(!v.match(Ad)){var E=m.slice(0,n),T=m.slice(n+1),w=g.match(Dd);w&&(E.push(w[1]),T.unshift(w[2])),T.length&&(s=T.join(".")+s),this.hostname=E.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var C=s.indexOf("#");-1!==C&&(this.hash=s.substr(C),s=s.slice(0,C));var x=s.indexOf("?");return-1!==x&&(this.search=s.substr(x),s=s.slice(0,x)),s&&(this.pathname=s),Rd[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},xd.prototype.parseHost=function(e){var t=Nd.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Pd=Fd;hd.encode=yd,hd.decode=wd,hd.format=Cd,hd.parse=Pd;var jd={},Vd=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ud=/[\0-\x1F\x7F-\x9F]/,Bd=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;jd.Any=Vd,jd.Cc=Ud,jd.Cf=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,jd.P=pd,jd.Z=Bd,function(e){function t(e){return Object.prototype.toString.call(e)}function n(e){return"[object String]"===t(e)}u(t,"_class"),u(n,"isString");var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e}function a(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function s(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function l(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}u(i,"has"),u(o,"assign"),u(a,"arrayReplaceAt"),u(s,"isValidEntityCode"),u(l,"fromCodePoint");var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=new RegExp(c.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,p=fd;function h(e,t){var n=0;return i(p,t)?p[t]:35===t.charCodeAt(0)&&f.test(t)&&s(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?l(n):e}function m(e){return e.indexOf("\\")<0?e:e.replace(c,"$1")}function g(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(d,(function(e,t,n){return t||h(e,n)}))}u(h,"replaceEntityPattern"),u(m,"unescapeMd"),u(g,"unescapeAll");var v=/[&<>"]/,y=/[&<>"]/g,b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function E(e){return b[e]}function T(e){return v.test(e)?e.replace(y,E):e}u(E,"replaceUnsafeChar"),u(T,"escapeHtml");var w=/[.?*+^$[\]\\(){}|-]/g;function C(e){return e.replace(w,"\\$&")}function x(e){switch(e){case 9:case 32:return!0}return!1}function S(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}u(C,"escapeRE"),u(x,"isSpace"),u(S,"isWhiteSpace");var N=pd;function k(e){return N.test(e)}function _(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function O(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}u(k,"isPunctChar"),u(_,"isMdAsciiPunct"),u(O,"normalizeReference"),e.lib={},e.lib.mdurl=hd,e.lib.ucmicro=jd,e.assign=o,e.isString=n,e.has=i,e.unescapeMd=m,e.unescapeAll=g,e.isValidEntityCode=s,e.fromCodePoint=l,e.escapeHtml=T,e.arrayReplaceAt=a,e.isSpace=x,e.isWhiteSpace=S,e.isMdAsciiPunct=_,e.isPunctChar=k,e.escapeRE=C,e.normalizeReference=O}(dd);var $d={},qd=u((function(e,t,n){var r,i,o,a,s=-1,l=e.posMax,u=e.pos;for(e.pos=t+1,r=1;e.pos<l;){if(93===(o=e.src.charCodeAt(e.pos))&&0==--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=u,-1}return i&&(s=e.pos),e.pos=u,s}),"parseLinkLabel"),Hd=dd.unescapeAll,Gd=u((function(e,t,n){var r,i,o=t,a={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(r=e.charCodeAt(t)))return a;if(60===r)return a;if(62===r)return a.pos=t+1,a.str=Hd(e.slice(o+1,t)),a.ok=!0,a;92===r&&t+1<n?t+=2:t++}return a}for(i=0;t<n&&32!==(r=e.charCodeAt(t))&&!(r<32||127===r);)if(92===r&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===r&&++i>32)return a;if(41===r){if(0===i)break;i--}t++}return o===t||0!==i||(a.str=Hd(e.slice(o,t)),a.lines=0,a.pos=t,a.ok=!0),a}),"parseLinkDestination"),Wd=dd.unescapeAll,zd=u((function(e,t,n){var r,i,o=0,a=t,s={ok:!1,pos:0,lines:0,str:""};if(t>=n)return s;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return s;for(t++,40===i&&(i=41);t<n;){if((r=e.charCodeAt(t))===i)return s.pos=t+1,s.lines=o,s.str=Wd(e.slice(a+1,t)),s.ok=!0,s;if(40===r&&41===i)return s;10===r?o++:92===r&&t+1<n&&(t++,10===e.charCodeAt(t)&&o++),t++}return s}),"parseLinkTitle");$d.parseLinkLabel=qd,$d.parseLinkDestination=Gd,$d.parseLinkTitle=zd;var Kd=dd.assign,Qd=dd.unescapeAll,Yd=dd.escapeHtml,Jd={};function Xd(){this.rules=Kd({},Jd)}Jd.code_inline=function(e,t,n,r,i){var o=e[t];return"<code"+i.renderAttrs(o)+">"+Yd(e[t].content)+"</code>"},Jd.code_block=function(e,t,n,r,i){var o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+Yd(e[t].content)+"</code></pre>\n"},Jd.fence=function(e,t,n,r,i){var o,a,s,l,u,c=e[t],d=c.info?Qd(c.info).trim():"",f="",p="";return d&&(f=(s=d.split(/(\s+)/g))[0],p=s.slice(2).join("")),0===(o=n.highlight&&n.highlight(c.content,f,p)||Yd(c.content)).indexOf("<pre")?o+"\n":d?(a=c.attrIndex("class"),l=c.attrs?c.attrs.slice():[],a<0?l.push(["class",n.langPrefix+f]):(l[a]=l[a].slice(),l[a][1]+=" "+n.langPrefix+f),u={attrs:l},"<pre><code"+i.renderAttrs(u)+">"+o+"</code></pre>\n"):"<pre><code"+i.renderAttrs(c)+">"+o+"</code></pre>\n"},Jd.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},Jd.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},Jd.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},Jd.text=function(e,t){return Yd(e[t].content)},Jd.html_block=function(e,t){return e[t].content},Jd.html_inline=function(e,t){return e[t].content},u(Xd,"Renderer$1"),Xd.prototype.renderAttrs=u((function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+Yd(e.attrs[t][0])+'="'+Yd(e.attrs[t][1])+'"';return r}),"renderAttrs"),Xd.prototype.renderToken=u((function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===a.tag)&&(o=!1)),i+=o?">\n":">")}),"renderToken"),Xd.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a<s;a++)void 0!==o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},Xd.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},Xd.prototype.render=function(e,t,n){var r,i,o,a="",s=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?a+=this.renderInline(e[r].children,t,n):void 0!==s[o]?a+=s[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a};var Zd=Xd;function ef(){this.__rules__=[],this.__cache__=null}u(ef,"Ruler$3"),ef.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},ef.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},ef.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},ef.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},ef.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},ef.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},ef.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},ef.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},ef.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},ef.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};var tf=ef,nf=/\r\n?|\n/g,rf=/\0/g,of=u((function(e){var t;t=(t=e.src.replace(nf,"\n")).replace(rf,"�"),e.src=t}),"normalize"),af=u((function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}),"block"),sf=u((function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}),"inline"),lf=dd.arrayReplaceAt;function uf(e){return/^<a[>\s]/i.test(e)}function cf(e){return/^<\/a\s*>/i.test(e)}u(uf,"isLinkOpen"),u(cf,"isLinkClose");var df=u((function(e){var t,n,r,i,o,a,s,l,u,c,d,f,p,h,m,g,v,y=e.tokens;if(e.md.options.linkify)for(n=0,r=y.length;n<r;n++)if("inline"===y[n].type&&e.md.linkify.pretest(y[n].content))for(p=0,t=(i=y[n].children).length-1;t>=0;t--)if("link_close"!==(a=i[t]).type){if("html_inline"===a.type&&(uf(a.content)&&p>0&&p--,cf(a.content)&&p++),!(p>0)&&"text"===a.type&&e.md.linkify.test(a.content)){for(u=a.content,v=e.md.linkify.match(u),s=[],f=a.level,d=0,l=0;l<v.length;l++)h=v[l].url,m=e.md.normalizeLink(h),e.md.validateLink(m)&&(g=v[l].text,g=v[l].schema?"mailto:"!==v[l].schema||/^mailto:/i.test(g)?e.md.normalizeLinkText(g):e.md.normalizeLinkText("mailto:"+g).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+g).replace(/^http:\/\//,""),(c=v[l].index)>d&&((o=new e.Token("text","",0)).content=u.slice(d,c),o.level=f,s.push(o)),(o=new e.Token("link_open","a",1)).attrs=[["href",m]],o.level=f++,o.markup="linkify",o.info="auto",s.push(o),(o=new e.Token("text","",0)).content=g,o.level=f,s.push(o),(o=new e.Token("link_close","a",-1)).level=--f,o.markup="linkify",o.info="auto",s.push(o),d=v[l].lastIndex);d<u.length&&((o=new e.Token("text","",0)).content=u.slice(d),o.level=f,s.push(o)),y[n].children=i=lf(i,t,s)}}else for(t--;i[t].level!==a.level&&"link_open"!==i[t].type;)t--}),"linkify"),ff=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,pf=/\((c|tm|r|p)\)/i,hf=/\((c|tm|r|p)\)/gi,mf={c:"©",r:"®",p:"§",tm:"™"};function gf(e,t){return mf[t.toLowerCase()]}function vf(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(hf,gf)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function yf(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||ff.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}u(gf,"replaceFn"),u(vf,"replace_scoped"),u(yf,"replace_rare");var bf=u((function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(pf.test(e.tokens[t].content)&&vf(e.tokens[t].children),ff.test(e.tokens[t].content)&&yf(e.tokens[t].children))}),"replace"),Ef=dd.isWhiteSpace,Tf=dd.isPunctChar,wf=dd.isMdAsciiPunct,Cf=/['"]/,xf=/['"]/g;function Sf(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function Nf(e,t){var n,r,i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,E,T,w;for(E=[],n=0;n<e.length;n++){for(r=e[n],l=e[n].level,y=E.length-1;y>=0&&!(E[y].level<=l);y--);if(E.length=y+1,"text"===r.type){a=0,s=(i=r.content).length;e:for(;a<s&&(xf.lastIndex=a,o=xf.exec(i));){if(g=v=!0,a=o.index+1,b="'"===o[0],c=32,o.index-1>=0)c=i.charCodeAt(o.index-1);else for(y=n-1;y>=0&&"softbreak"!==e[y].type&&"hardbreak"!==e[y].type;y--)if(e[y].content){c=e[y].content.charCodeAt(e[y].content.length-1);break}if(d=32,a<s)d=i.charCodeAt(a);else for(y=n+1;y<e.length&&"softbreak"!==e[y].type&&"hardbreak"!==e[y].type;y++)if(e[y].content){d=e[y].content.charCodeAt(0);break}if(f=wf(c)||Tf(String.fromCharCode(c)),p=wf(d)||Tf(String.fromCharCode(d)),h=Ef(c),(m=Ef(d))?g=!1:p&&(h||f||(g=!1)),h?v=!1:f&&(m||p||(v=!1)),34===d&&'"'===o[0]&&c>=48&&c<=57&&(v=g=!1),g&&v&&(g=f,v=p),g||v){if(v)for(y=E.length-1;y>=0&&(u=E[y],!(E[y].level<l));y--)if(u.single===b&&E[y].level===l){u=E[y],b?(T=t.md.options.quotes[2],w=t.md.options.quotes[3]):(T=t.md.options.quotes[0],w=t.md.options.quotes[1]),r.content=Sf(r.content,o.index,w),e[u.token].content=Sf(e[u.token].content,u.pos,T),a+=w.length-1,u.token===n&&(a+=T.length-1),s=(i=r.content).length,E.length=y;continue e}g?E.push({token:n,pos:o.index,single:b,level:l}):v&&b&&(r.content=Sf(r.content,o.index,"’"))}else b&&(r.content=Sf(r.content,o.index,"’"))}}}}u(Sf,"replaceAt"),u(Nf,"process_inlines");var kf=u((function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&Cf.test(e.tokens[t].content)&&Nf(e.tokens[t].children,e)}),"smartquotes");function _f(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}u(_f,"Token$3"),_f.prototype.attrIndex=u((function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1}),"attrIndex"),_f.prototype.attrPush=u((function(e){this.attrs?this.attrs.push(e):this.attrs=[e]}),"attrPush"),_f.prototype.attrSet=u((function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r}),"attrSet"),_f.prototype.attrGet=u((function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n}),"attrGet"),_f.prototype.attrJoin=u((function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t}),"attrJoin");var Of=_f,If=Of;function Lf(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}u(Lf,"StateCore"),Lf.prototype.Token=If;var Af=Lf,Df=tf,Mf=[["normalize",of],["block",af],["inline",sf],["linkify",df],["replacements",bf],["smartquotes",kf]];function Rf(){this.ruler=new Df;for(var e=0;e<Mf.length;e++)this.ruler.push(Mf[e][0],Mf[e][1])}u(Rf,"Core"),Rf.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},Rf.prototype.State=Af;var Ff=Rf,Pf=dd.isSpace;function jf(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function Vf(e){var t,n=[],r=0,i=e.length,o=!1,a=0,s="";for(t=e.charCodeAt(r);r<i;)124===t&&(o?(s+=e.substring(a,r-1),a=r):(n.push(s+e.substring(a,r)),s="",a=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(s+e.substring(a)),n}u(jf,"getLine"),u(Vf,"escapedSplit");var Uf=u((function(e,t,n,r){var i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,E,T;if(t+2>n)return!1;if(u=t+1,e.sCount[u]<e.blkIndent)return!1;if(e.sCount[u]-e.blkIndent>=4)return!1;if((a=e.bMarks[u]+e.tShift[u])>=e.eMarks[u])return!1;if(124!==(E=e.src.charCodeAt(a++))&&45!==E&&58!==E)return!1;if(a>=e.eMarks[u])return!1;if(124!==(T=e.src.charCodeAt(a++))&&45!==T&&58!==T&&!Pf(T))return!1;if(45===E&&Pf(T))return!1;for(;a<e.eMarks[u];){if(124!==(i=e.src.charCodeAt(a))&&45!==i&&58!==i&&!Pf(i))return!1;a++}for(c=(o=jf(e,t+1)).split("|"),p=[],s=0;s<c.length;s++){if(!(h=c[s].trim())){if(0===s||s===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(h))return!1;58===h.charCodeAt(h.length-1)?p.push(58===h.charCodeAt(0)?"center":"right"):58===h.charCodeAt(0)?p.push("left"):p.push("")}if(-1===(o=jf(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((c=Vf(o)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),0===(d=c.length)||d!==p.length)return!1;if(r)return!0;for(v=e.parentType,e.parentType="table",b=e.md.block.ruler.getRules("blockquote"),(f=e.push("table_open","table",1)).map=m=[t,0],(f=e.push("thead_open","thead",1)).map=[t,t+1],(f=e.push("tr_open","tr",1)).map=[t,t+1],s=0;s<c.length;s++)f=e.push("th_open","th",1),p[s]&&(f.attrs=[["style","text-align:"+p[s]]]),(f=e.push("inline","",0)).content=c[s].trim(),f.children=[],f=e.push("th_close","th",-1);for(f=e.push("tr_close","tr",-1),f=e.push("thead_close","thead",-1),u=t+2;u<n&&!(e.sCount[u]<e.blkIndent);u++){for(y=!1,s=0,l=b.length;s<l;s++)if(b[s](e,u,n,!0)){y=!0;break}if(y)break;if(!(o=jf(e,u).trim()))break;if(e.sCount[u]-e.blkIndent>=4)break;for((c=Vf(o)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),u===t+2&&((f=e.push("tbody_open","tbody",1)).map=g=[t+2,0]),(f=e.push("tr_open","tr",1)).map=[u,u+1],s=0;s<d;s++)f=e.push("td_open","td",1),p[s]&&(f.attrs=[["style","text-align:"+p[s]]]),(f=e.push("inline","",0)).content=c[s]?c[s].trim():"",f.children=[],f=e.push("td_close","td",-1);f=e.push("tr_close","tr",-1)}return g&&(f=e.push("tbody_close","tbody",-1),g[1]=u),f=e.push("table_close","table",-1),m[1]=u,e.parentType=v,e.line=u,!0}),"table"),Bf=u((function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}),"code"),$f=u((function(e,t,n,r){var i,o,a,s,l,u,c,d=!1,f=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(f+3>p)return!1;if(126!==(i=e.src.charCodeAt(f))&&96!==i)return!1;if(l=f,(o=(f=e.skipChars(f,i))-l)<3)return!1;if(c=e.src.slice(l,f),a=e.src.slice(f,p),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(f=l=e.bMarks[s]+e.tShift[s])<(p=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(f)===i&&!(e.sCount[s]-e.blkIndent>=4||(f=e.skipChars(f,i))-l<o||(f=e.skipSpaces(f))<p)){d=!0;break}return o=e.sCount[t],e.line=s+(d?1:0),(u=e.push("fence","code",0)).info=a,u.content=e.getLines(t+1,s,o,!0),u.markup=c,u.map=[t,e.line],!0}),"fence"),qf=dd.isSpace,Hf=u((function(e,t,n,r){var i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,E,T,w,C,x=e.lineMax,S=e.bMarks[t]+e.tShift[t],N=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(S++))return!1;if(r)return!0;for(s=f=e.sCount[t]+1,32===e.src.charCodeAt(S)?(S++,s++,f++,i=!1,b=!0):9===e.src.charCodeAt(S)?(b=!0,(e.bsCount[t]+f)%4==3?(S++,s++,f++,i=!1):i=!0):b=!1,p=[e.bMarks[t]],e.bMarks[t]=S;S<N&&(o=e.src.charCodeAt(S),qf(o));)9===o?f+=4-(f+e.bsCount[t]+(i?1:0))%4:f++,S++;for(h=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(b?1:0),u=S>=N,v=[e.sCount[t]],e.sCount[t]=f-s,y=[e.tShift[t]],e.tShift[t]=S-e.bMarks[t],T=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",d=t+1;d<n&&(C=e.sCount[d]<e.blkIndent,!((S=e.bMarks[d]+e.tShift[d])>=(N=e.eMarks[d])));d++)if(62!==e.src.charCodeAt(S++)||C){if(u)break;for(E=!1,a=0,l=T.length;a<l;a++)if(T[a](e,d,n,!0)){E=!0;break}if(E){e.lineMax=d,0!==e.blkIndent&&(p.push(e.bMarks[d]),h.push(e.bsCount[d]),y.push(e.tShift[d]),v.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}p.push(e.bMarks[d]),h.push(e.bsCount[d]),y.push(e.tShift[d]),v.push(e.sCount[d]),e.sCount[d]=-1}else{for(s=f=e.sCount[d]+1,32===e.src.charCodeAt(S)?(S++,s++,f++,i=!1,b=!0):9===e.src.charCodeAt(S)?(b=!0,(e.bsCount[d]+f)%4==3?(S++,s++,f++,i=!1):i=!0):b=!1,p.push(e.bMarks[d]),e.bMarks[d]=S;S<N&&(o=e.src.charCodeAt(S),qf(o));)9===o?f+=4-(f+e.bsCount[d]+(i?1:0))%4:f++,S++;u=S>=N,h.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(b?1:0),v.push(e.sCount[d]),e.sCount[d]=f-s,y.push(e.tShift[d]),e.tShift[d]=S-e.bMarks[d]}for(m=e.blkIndent,e.blkIndent=0,(w=e.push("blockquote_open","blockquote",1)).markup=">",w.map=c=[t,0],e.md.block.tokenize(e,t,d),(w=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=x,e.parentType=g,c[1]=e.line,a=0;a<y.length;a++)e.bMarks[a+t]=p[a],e.tShift[a+t]=y[a],e.sCount[a+t]=v[a],e.bsCount[a+t]=h[a];return e.blkIndent=m,!0}),"blockquote"),Gf=dd.isSpace,Wf=u((function(e,t,n,r){var i,o,a,s,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(l++))&&45!==i&&95!==i)return!1;for(o=1;l<u;){if((a=e.src.charCodeAt(l++))!==i&&!Gf(a))return!1;a===i&&o++}return!(o<3||(r||(e.line=t+1,(s=e.push("hr","hr",0)).map=[t,e.line],s.markup=Array(o+1).join(String.fromCharCode(i))),0))}),"hr"),zf=dd.isSpace;function Kf(e,t){var n,r,i,o;return r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],42!==(n=e.src.charCodeAt(r++))&&45!==n&&43!==n||r<i&&(o=e.src.charCodeAt(r),!zf(o))?-1:r}function Qf(e,t){var n,r=e.bMarks[t]+e.tShift[t],i=r,o=e.eMarks[t];if(i+1>=o)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=o)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-r>=10)return-1}return i<o&&(n=e.src.charCodeAt(i),!zf(n))?-1:i}function Yf(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}u(Kf,"skipBulletListMarker"),u(Qf,"skipOrderedListMarker"),u(Yf,"markTightParagraphs");var Jf=u((function(e,t,n,r){var i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,E,T,w,C,x,S,N,k,_,O,I,L,A=!1,D=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(A=!0),(N=Qf(e,t))>=0){if(c=!0,_=e.bMarks[t]+e.tShift[t],g=Number(e.src.slice(_,N-1)),A&&1!==g)return!1}else{if(!((N=Kf(e,t))>=0))return!1;c=!1}if(A&&e.skipSpaces(N)>=e.eMarks[t])return!1;if(m=e.src.charCodeAt(N-1),r)return!0;for(h=e.tokens.length,c?(L=e.push("ordered_list_open","ol",1),1!==g&&(L.attrs=[["start",g]])):L=e.push("bullet_list_open","ul",1),L.map=p=[t,0],L.markup=String.fromCharCode(m),y=t,k=!1,I=e.md.block.ruler.getRules("list"),T=e.parentType,e.parentType="list";y<n;){for(S=N,v=e.eMarks[y],u=b=e.sCount[y]+N-(e.bMarks[t]+e.tShift[t]);S<v;){if(9===(i=e.src.charCodeAt(S)))b+=4-(b+e.bsCount[y])%4;else{if(32!==i)break;b++}S++}if((l=(o=S)>=v?1:b-u)>4&&(l=1),s=u+l,(L=e.push("list_item_open","li",1)).markup=String.fromCharCode(m),L.map=d=[t,0],c&&(L.info=e.src.slice(_,N-1)),x=e.tight,C=e.tShift[t],w=e.sCount[t],E=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=s,e.tight=!0,e.tShift[t]=o-e.bMarks[t],e.sCount[t]=b,o>=v&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!k||(D=!1),k=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=E,e.tShift[t]=C,e.sCount[t]=w,e.tight=x,(L=e.push("list_item_close","li",-1)).markup=String.fromCharCode(m),y=t=e.line,d[1]=y,o=e.bMarks[t],y>=n)break;if(e.sCount[y]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(O=!1,a=0,f=I.length;a<f;a++)if(I[a](e,y,n,!0)){O=!0;break}if(O)break;if(c){if((N=Qf(e,y))<0)break;_=e.bMarks[y]+e.tShift[y]}else if((N=Kf(e,y))<0)break;if(m!==e.src.charCodeAt(N-1))break}return(L=c?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(m),p[1]=y,e.line=y,e.parentType=T,D&&Yf(e,h),!0}),"list"),Xf=dd.normalizeReference,Zf=dd.isSpace,ep=u((function(e,t,n,r){var i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,E=0,T=e.bMarks[t]+e.tShift[t],w=e.eMarks[t],C=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(T))return!1;for(;++T<w;)if(93===e.src.charCodeAt(T)&&92!==e.src.charCodeAt(T-1)){if(T+1===w)return!1;if(58!==e.src.charCodeAt(T+1))return!1;break}for(s=e.lineMax,y=e.md.block.ruler.getRules("reference"),p=e.parentType,e.parentType="reference";C<s&&!e.isEmpty(C);C++)if(!(e.sCount[C]-e.blkIndent>3||e.sCount[C]<0)){for(v=!1,u=0,c=y.length;u<c;u++)if(y[u](e,C,s,!0)){v=!0;break}if(v)break}for(w=(g=e.getLines(t,C,e.blkIndent,!1).trim()).length,T=1;T<w;T++){if(91===(i=g.charCodeAt(T)))return!1;if(93===i){f=T;break}(10===i||92===i&&++T<w&&10===g.charCodeAt(T))&&E++}if(f<0||58!==g.charCodeAt(f+1))return!1;for(T=f+2;T<w;T++)if(10===(i=g.charCodeAt(T)))E++;else if(!Zf(i))break;if(!(h=e.md.helpers.parseLinkDestination(g,T,w)).ok)return!1;if(l=e.md.normalizeLink(h.str),!e.md.validateLink(l))return!1;for(o=T=h.pos,a=E+=h.lines,m=T;T<w;T++)if(10===(i=g.charCodeAt(T)))E++;else if(!Zf(i))break;for(h=e.md.helpers.parseLinkTitle(g,T,w),T<w&&m!==T&&h.ok?(b=h.str,T=h.pos,E+=h.lines):(b="",T=o,E=a);T<w&&(i=g.charCodeAt(T),Zf(i));)T++;if(T<w&&10!==g.charCodeAt(T)&&b)for(b="",T=o,E=a;T<w&&(i=g.charCodeAt(T),Zf(i));)T++;return!(T<w&&10!==g.charCodeAt(T)||!(d=Xf(g.slice(1,f)))||(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[d]&&(e.env.references[d]={title:b,href:l}),e.parentType=p,e.line=t+E+1),0))}),"reference"),tp={},np="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",rp="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",ip=new RegExp("^(?:"+np+"|"+rp+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),op=new RegExp("^(?:"+np+"|"+rp+")");tp.HTML_TAG_RE=ip,tp.HTML_OPEN_CLOSE_TAG_RE=op;var ap=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],sp=tp.HTML_OPEN_CLOSE_TAG_RE,lp=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+ap.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(sp.source+"\\s*$"),/^$/,!1]],up=u((function(e,t,n,r){var i,o,a,s,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(s=e.src.slice(l,u),i=0;i<lp.length&&!lp[i][0].test(s);i++);if(i===lp.length)return!1;if(r)return lp[i][2];if(o=t+1,!lp[i][1].test(s))for(;o<n&&!(e.sCount[o]<e.blkIndent);o++)if(l=e.bMarks[o]+e.tShift[o],u=e.eMarks[o],s=e.src.slice(l,u),lp[i][1].test(s)){0!==s.length&&o++;break}return e.line=o,(a=e.push("html_block","",0)).map=[t,o],a.content=e.getLines(t,o,e.blkIndent,!0),!0}),"html_block"),cp=dd.isSpace,dp=u((function(e,t,n,r){var i,o,a,s,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(i=e.src.charCodeAt(l))||l>=u)return!1;for(o=1,i=e.src.charCodeAt(++l);35===i&&l<u&&o<=6;)o++,i=e.src.charCodeAt(++l);return!(o>6||l<u&&!cp(i)||(r||(u=e.skipSpacesBack(u,l),(a=e.skipCharsBack(u,35,l))>l&&cp(e.src.charCodeAt(a-1))&&(u=a),e.line=t+1,(s=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),s.map=[t,e.line],(s=e.push("inline","",0)).content=e.src.slice(l,u).trim(),s.map=[t,e.line],s.children=[],(s=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o)),0))}),"heading"),fp=u((function(e,t,n){var r,i,o,a,s,l,u,c,d,f,p=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(f=e.parentType,e.parentType="paragraph";p<n&&!e.isEmpty(p);p++)if(!(e.sCount[p]-e.blkIndent>3)){if(e.sCount[p]>=e.blkIndent&&(l=e.bMarks[p]+e.tShift[p])<(u=e.eMarks[p])&&(45===(d=e.src.charCodeAt(l))||61===d)&&(l=e.skipChars(l,d),(l=e.skipSpaces(l))>=u)){c=61===d?1:2;break}if(!(e.sCount[p]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,p,n,!0)){i=!0;break}if(i)break}}return!!c&&(r=e.getLines(t,p,e.blkIndent,!1).trim(),e.line=p+1,(s=e.push("heading_open","h"+String(c),1)).markup=String.fromCharCode(d),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(c),-1)).markup=String.fromCharCode(d),e.parentType=f,!0)}),"lheading"),pp=u((function(e,t){var n,r,i,o,a,s,l=t+1,u=e.md.block.ruler.getRules("paragraph"),c=e.lineMax;for(s=e.parentType,e.parentType="paragraph";l<c&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3||e.sCount[l]<0)){for(r=!1,i=0,o=u.length;i<o;i++)if(u[i](e,l,c,!0)){r=!0;break}if(r)break}return n=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0}),"paragraph"),hp=Of,mp=dd.isSpace;function gp(e,t,n,r){var i,o,a,s,l,u,c,d;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",d=!1,a=s=u=c=0,l=(o=this.src).length;s<l;s++){if(i=o.charCodeAt(s),!d){if(mp(i)){u++,9===i?c+=4-c%4:c++;continue}d=!0}10!==i&&s!==l-1||(10!==i&&s++,this.bMarks.push(a),this.eMarks.push(s),this.tShift.push(u),this.sCount.push(c),this.bsCount.push(0),d=!1,u=0,c=0,a=s+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}u(gp,"StateBlock"),gp.prototype.push=function(e,t,n){var r=new hp(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},gp.prototype.isEmpty=u((function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}),"isEmpty"),gp.prototype.skipEmptyLines=u((function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e}),"skipEmptyLines"),gp.prototype.skipSpaces=u((function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),mp(t));e++);return e}),"skipSpaces"),gp.prototype.skipSpacesBack=u((function(e,t){if(e<=t)return e;for(;e>t;)if(!mp(this.src.charCodeAt(--e)))return e+1;return e}),"skipSpacesBack"),gp.prototype.skipChars=u((function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e}),"skipChars"),gp.prototype.skipCharsBack=u((function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e}),"skipCharsBack"),gp.prototype.getLines=u((function(e,t,n,r){var i,o,a,s,l,u,c,d=e;if(e>=t)return"";for(u=new Array(t-e),i=0;d<t;d++,i++){for(o=0,c=s=this.bMarks[d],l=d+1<t||r?this.eMarks[d]+1:this.eMarks[d];s<l&&o<n;){if(a=this.src.charCodeAt(s),mp(a))9===a?o+=4-(o+this.bsCount[d])%4:o++;else{if(!(s-c<this.tShift[d]))break;o++}s++}u[i]=o>n?new Array(o-n+1).join(" ")+this.src.slice(s,l):this.src.slice(s,l)}return u.join("")}),"getLines"),gp.prototype.Token=hp;var vp=gp,yp=tf,bp=[["table",Uf,["paragraph","reference"]],["code",Bf],["fence",$f,["paragraph","reference","blockquote","list"]],["blockquote",Hf,["paragraph","reference","blockquote","list"]],["hr",Wf,["paragraph","reference","blockquote","list"]],["list",Jf,["paragraph","reference","blockquote"]],["reference",ep],["html_block",up,["paragraph","reference","blockquote"]],["heading",dp,["paragraph","reference","blockquote"]],["lheading",fp],["paragraph",pp]];function Ep(){this.ruler=new yp;for(var e=0;e<bp.length;e++)this.ruler.push(bp[e][0],bp[e][1],{alt:(bp[e][2]||[]).slice()})}u(Ep,"ParserBlock$1"),Ep.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=t,s=!1,l=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=l){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},Ep.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},Ep.prototype.State=vp;var Tp=Ep;function wp(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}u(wp,"isTerminatorChar");for(var Cp=u((function(e,t){for(var n=e.pos;n<e.posMax&&!wp(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}),"text"),xp=dd.isSpace,Sp=u((function(e,t){var n,r,i=e.pos;if(10!==e.src.charCodeAt(i))return!1;for(n=e.pending.length-1,r=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),i++;i<r&&xp(e.src.charCodeAt(i));)i++;return e.pos=i,!0}),"newline"),Np=dd.isSpace,kp=[],_p=0;_p<256;_p++)kp.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){kp[e.charCodeAt(0)]=1}));var Op=u((function(e,t){var n,r=e.pos,i=e.posMax;if(92!==e.src.charCodeAt(r))return!1;if(++r<i){if((n=e.src.charCodeAt(r))<256&&0!==kp[n])return t||(e.pending+=e.src[r]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),r++;r<i&&(n=e.src.charCodeAt(r),Np(n));)r++;return e.pos=r,!0}}return t||(e.pending+="\\"),e.pos++,!0}),"escape"),Ip=u((function(e,t){var n,r,i,o,a,s,l,u,c=e.pos;if(96!==e.src.charCodeAt(c))return!1;for(n=c,c++,r=e.posMax;c<r&&96===e.src.charCodeAt(c);)c++;if(l=(i=e.src.slice(n,c)).length,e.backticksScanned&&(e.backticks[l]||0)<=n)return t||(e.pending+=i),e.pos+=l,!0;for(a=s=c;-1!==(a=e.src.indexOf("`",s));){for(s=a+1;s<r&&96===e.src.charCodeAt(s);)s++;if((u=s-a)===l)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(c,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[u]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=l,!0}),"backtick"),Lp={};function Ap(e,t){var n,r,i,o,a,s=[],l=t.length;for(n=0;n<l;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}Lp.tokenize=u((function(e,t){var n,r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:s,length:0,jump:n/2,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}),"strikethrough"),u(Ap,"postProcess$1"),Lp.postProcess=u((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(Ap(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&Ap(e,n[t].delimiters)}),"strikethrough");var Dp={};function Mp(e,t){var n,r,i,o,a,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1&&t[n-1].marker===r.marker,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}Dp.tokenize=u((function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,jump:n,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}),"emphasis"),u(Mp,"postProcess"),Dp.postProcess=u((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(Mp(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&Mp(e,n[t].delimiters)}),"emphasis");var Rp=dd.normalizeReference,Fp=dd.isSpace,Pp=u((function(e,t){var n,r,i,o,a,s,l,u,c="",d="",f=e.pos,p=e.posMax,h=e.pos,m=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(a=e.pos+1,(o=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((s=o+1)<p&&40===e.src.charCodeAt(s)){for(m=!1,s++;s<p&&(r=e.src.charCodeAt(s),Fp(r)||10===r);s++);if(s>=p)return!1;if(h=s,(l=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok){for(c=e.md.normalizeLink(l.str),e.md.validateLink(c)?s=l.pos:c="",h=s;s<p&&(r=e.src.charCodeAt(s),Fp(r)||10===r);s++);if(l=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<p&&h!==s&&l.ok)for(d=l.str,s=l.pos;s<p&&(r=e.src.charCodeAt(s),Fp(r)||10===r);s++);}(s>=p||41!==e.src.charCodeAt(s))&&(m=!0),s++}if(m){if(void 0===e.env.references)return!1;if(s<p&&91===e.src.charCodeAt(s)?(h=s+1,(s=e.md.helpers.parseLinkLabel(e,s))>=0?i=e.src.slice(h,s++):s=o+1):s=o+1,i||(i=e.src.slice(a,o)),!(u=e.env.references[Rp(i)]))return e.pos=f,!1;c=u.href,d=u.title}return t||(e.pos=a,e.posMax=o,e.push("link_open","a",1).attrs=n=[["href",c]],d&&n.push(["title",d]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=s,e.posMax=p,!0}),"link"),jp=dd.normalizeReference,Vp=dd.isSpace,Up=u((function(e,t){var n,r,i,o,a,s,l,u,c,d,f,p,h,m="",g=e.pos,v=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(s=e.pos+2,(a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((l=a+1)<v&&40===e.src.charCodeAt(l)){for(l++;l<v&&(r=e.src.charCodeAt(l),Vp(r)||10===r);l++);if(l>=v)return!1;for(h=l,(c=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(m=e.md.normalizeLink(c.str),e.md.validateLink(m)?l=c.pos:m=""),h=l;l<v&&(r=e.src.charCodeAt(l),Vp(r)||10===r);l++);if(c=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<v&&h!==l&&c.ok)for(d=c.str,l=c.pos;l<v&&(r=e.src.charCodeAt(l),Vp(r)||10===r);l++);else d="";if(l>=v||41!==e.src.charCodeAt(l))return e.pos=g,!1;l++}else{if(void 0===e.env.references)return!1;if(l<v&&91===e.src.charCodeAt(l)?(h=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?o=e.src.slice(h,l++):l=a+1):l=a+1,o||(o=e.src.slice(s,a)),!(u=e.env.references[jp(o)]))return e.pos=g,!1;m=u.href,d=u.title}return t||(i=e.src.slice(s,a),e.md.inline.parse(i,e.md,e.env,p=[]),(f=e.push("image","img",0)).attrs=n=[["src",m],["alt",""]],f.children=p,f.content=i,d&&n.push(["title",d])),e.pos=l,e.posMax=v,!0}),"image"),Bp=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,$p=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,qp=u((function(e,t){var n,r,i,o,a,s,l=e.pos;if(60!==e.src.charCodeAt(l))return!1;for(a=e.pos,s=e.posMax;;){if(++l>=s)return!1;if(60===(o=e.src.charCodeAt(l)))return!1;if(62===o)break}return n=e.src.slice(a+1,l),$p.test(n)?(r=e.md.normalizeLink(n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0)):!!Bp.test(n)&&(r=e.md.normalizeLink("mailto:"+n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0))}),"autolink"),Hp=tp.HTML_TAG_RE;function Gp(e){var t=32|e;return t>=97&&t<=122}u(Gp,"isLetter");var Wp=u((function(e,t){var n,r,i,o=e.pos;return!(!e.md.options.html||(i=e.posMax,60!==e.src.charCodeAt(o)||o+2>=i||33!==(n=e.src.charCodeAt(o+1))&&63!==n&&47!==n&&!Gp(n)||!(r=e.src.slice(o).match(Hp))||(t||(e.push("html_inline","",0).content=e.src.slice(o,o+r[0].length)),e.pos+=r[0].length,0)))}),"html_inline"),zp=fd,Kp=dd.has,Qp=dd.isValidEntityCode,Yp=dd.fromCodePoint,Jp=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Xp=/^&([a-z][a-z0-9]{1,31});/i,Zp=u((function(e,t){var n,r,i=e.pos,o=e.posMax;if(38!==e.src.charCodeAt(i))return!1;if(i+1<o)if(35===e.src.charCodeAt(i+1)){if(r=e.src.slice(i).match(Jp))return t||(n="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),e.pending+=Qp(n)?Yp(n):Yp(65533)),e.pos+=r[0].length,!0}else if((r=e.src.slice(i).match(Xp))&&Kp(zp,r[1]))return t||(e.pending+=zp[r[1]]),e.pos+=r[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}),"entity");function eh(e,t){var n,r,i,o,a,s,l,u,c={},d=t.length;for(n=0;n<d;n++)if((i=t[n]).length=i.length||0,i.close){for(c.hasOwnProperty(i.marker)||(c[i.marker]=[-1,-1,-1,-1,-1,-1]),a=c[i.marker][(i.open?3:0)+i.length%3],(r=n-i.jump-1)<-1&&(r=-1),s=r;r>a;r-=o.jump+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(l=!0)),!l)){u=r>0&&!t[r-1].open?t[r-1].jump+1:0,i.jump=n-r+u,i.open=!1,o.end=n,o.jump=u,o.close=!1,s=-1;break}-1!==s&&(c[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}u(eh,"processDelimiters");var th=u((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(eh(0,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&eh(0,n[t].delimiters)}),"link_pairs"),nh=u((function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}),"text_collapse"),rh=Of,ih=dd.isWhiteSpace,oh=dd.isPunctChar,ah=dd.isMdAsciiPunct;function sh(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}u(sh,"StateInline"),sh.prototype.pushPending=function(){var e=new rh("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},sh.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new rh(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},sh.prototype.scanDelims=function(e,t){var n,r,i,o,a,s,l,u,c,d=e,f=!0,p=!0,h=this.posMax,m=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;d<h&&this.src.charCodeAt(d)===m;)d++;return i=d-e,r=d<h?this.src.charCodeAt(d):32,l=ah(n)||oh(String.fromCharCode(n)),c=ah(r)||oh(String.fromCharCode(r)),s=ih(n),(u=ih(r))?f=!1:c&&(s||l||(f=!1)),s?p=!1:l&&(u||c||(p=!1)),t?(o=f,a=p):(o=f&&(!p||l),a=p&&(!f||c)),{can_open:o,can_close:a,length:i}},sh.prototype.Token=rh;var lh=sh,uh=tf,ch=[["text",Cp],["newline",Sp],["escape",Op],["backticks",Ip],["strikethrough",Lp.tokenize],["emphasis",Dp.tokenize],["link",Pp],["image",Up],["autolink",qp],["html_inline",Wp],["entity",Zp]],dh=[["balance_pairs",th],["strikethrough",Lp.postProcess],["emphasis",Dp.postProcess],["text_collapse",nh]];function fh(){var e;for(this.ruler=new uh,e=0;e<ch.length;e++)this.ruler.push(ch[e][0],ch[e][1]);for(this.ruler2=new uh,e=0;e<dh.length;e++)this.ruler2.push(dh[e][0],dh[e][1])}u(fh,"ParserInline$1"),fh.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,s=e.cache;if(void 0===s[r]){if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos}else e.pos=s[r]},fh.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},fh.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](s)},fh.prototype.State=lh;var ph=fh,hh=u((function(e){var t={};return t.src_Any=Vd.source,t.src_Cc=Ud.source,t.src_Z=Bd.source,t.src_P=pd.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><｜]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><｜]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><｜]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><｜]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),"re");function mh(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function gh(e){return Object.prototype.toString.call(e)}function vh(e){return"[object String]"===gh(e)}function yh(e){return"[object Object]"===gh(e)}function bh(e){return"[object RegExp]"===gh(e)}function Eh(e){return"[object Function]"===gh(e)}function Th(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}u(mh,"assign"),u(gh,"_class"),u(vh,"isString"),u(yh,"isObject"),u(bh,"isRegExp"),u(Eh,"isFunction"),u(Th,"escapeRE");var wh={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ch(e){return Object.keys(e||{}).reduce((function(e,t){return e||wh.hasOwnProperty(t)}),!1)}u(Ch,"isOptionsObj");var xh={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Sh="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Nh(e){e.__index__=-1,e.__text_cache__=""}function kh(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function _h(){return function(e,t){t.normalize(e)}}function Oh(e){var t=e.re=hh(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),u(r,"untpl"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},u(o,"schemaError"),Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,yh(n))return bh(n.validate)?r.validate=kh(n.validate):Eh(n.validate)?r.validate=n.validate:o(t,n),void(Eh(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});vh(n)?i.push(t):o(t,n)}})),i.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var a=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(Th).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Nh(e)}function Ih(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function Lh(e,t){var n=new Ih(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Ah(e,t){if(!(this instanceof Ah))return new Ah(e,t);t||Ch(e)&&(t=e,e={}),this.__opts__=mh({},wh,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=mh({},xh,e),this.__compiled__={},this.__tlds__=Sh,this.__tlds_replaced__=!1,this.re={},Oh(this)}u(Nh,"resetScanCache"),u(kh,"createValidator"),u(_h,"createNormalizer"),u(Oh,"compile"),u(Ih,"Match"),u(Lh,"createMatch"),u(Ah,"LinkifyIt$1"),Ah.prototype.add=u((function(e,t){return this.__schemas__[e]=t,Oh(this),this}),"add"),Ah.prototype.set=u((function(e){return this.__opts__=mh(this.__opts__,e),this}),"set"),Ah.prototype.test=u((function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0}),"test"),Ah.prototype.pretest=u((function(e){return this.re.pretest.test(e)}),"pretest"),Ah.prototype.testSchemaAt=u((function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0}),"testSchemaAt"),Ah.prototype.match=u((function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(Lh(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(Lh(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null}),"match"),Ah.prototype.tlds=u((function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),Oh(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Oh(this),this)}),"tlds"),Ah.prototype.normalize=u((function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)}),"normalize"),Ah.prototype.onCompile=u((function(){}),"onCompile");var Dh=Ah;const Mh=2147483647,Rh=/^xn--/,Fh=/[^\0-\x7E]/,Ph=/[\x2E\u3002\uFF0E\uFF61]/g,jh={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Vh=Math.floor,Uh=String.fromCharCode;function Bh(e){throw new RangeError(jh[e])}function $h(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function qh(e,t){const n=e.split("@");let r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+$h((e=e.replace(Ph,".")).split("."),t).join(".")}function Hh(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}u(Bh,"error"),u($h,"map"),u(qh,"mapDomain"),u(Hh,"ucs2decode");const Gh=u(e=>String.fromCodePoint(...e),"ucs2encode"),Wh=u((function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:36}),"basicToDigit"),zh=u((function(e,t){return e+22+75*(e<26)-((0!=t)<<5)}),"digitToBasic"),Kh=u((function(e,t,n){let r=0;for(e=n?Vh(e/700):e>>1,e+=Vh(e/t);e>455;r+=36)e=Vh(e/35);return Vh(r+36*e/(e+38))}),"adapt"),Qh=u((function(e){const t=[],n=e.length;let r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let n=0;n<a;++n)e.charCodeAt(n)>=128&&Bh("not-basic"),t.push(e.charCodeAt(n));for(let s=a>0?a+1:0;s<n;){let a=r;for(let t=1,i=36;;i+=36){s>=n&&Bh("invalid-input");const a=Wh(e.charCodeAt(s++));(a>=36||a>Vh((Mh-r)/t))&&Bh("overflow"),r+=a*t;const l=i<=o?1:i>=o+26?26:i-o;if(a<l)break;const u=36-l;t>Vh(Mh/u)&&Bh("overflow"),t*=u}const l=t.length+1;o=Kh(r-a,l,0==a),Vh(r/l)>Mh-i&&Bh("overflow"),i+=Vh(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)}),"decode"),Yh=u((function(e){const t=[];let n=(e=Hh(e)).length,r=128,i=0,o=72;for(const n of e)n<128&&t.push(Uh(n));let a=t.length,s=a;for(a&&t.push("-");s<n;){let n=Mh;for(const t of e)t>=r&&t<n&&(n=t);const l=s+1;n-r>Vh((Mh-i)/l)&&Bh("overflow"),i+=(n-r)*l,r=n;for(const n of e)if(n<r&&++i>Mh&&Bh("overflow"),n==r){let e=i;for(let n=36;;n+=36){const r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;const i=e-r,a=36-r;t.push(Uh(zh(r+i%a,0))),e=Vh(i/a)}t.push(Uh(zh(e,0))),o=Kh(i,l,s==a),i=0,++s}++i,++r}return t.join("")}),"encode"),Jh=u((function(e){return qh(e,(function(e){return Rh.test(e)?Qh(e.slice(4).toLowerCase()):e}))}),"toUnicode"),Xh=u((function(e){return qh(e,(function(e){return Fh.test(e)?"xn--"+Yh(e):e}))}),"toASCII"),Zh={version:"2.1.0",ucs2:{decode:Hh,encode:Gh},decode:Qh,encode:Yh,toASCII:Xh,toUnicode:Jh};var em=Object.freeze(Object.defineProperty({__proto__:null,ucs2decode:Hh,ucs2encode:Gh,decode:Qh,encode:Yh,toASCII:Xh,toUnicode:Jh,default:Zh},Symbol.toStringTag,{value:"Module"})),tm=dd,nm=$d,rm=Zd,im=Ff,om=Tp,am=ph,sm=Dh,lm=hd,um=q(em),cm={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},dm=/^(vbscript|javascript|file|data):/,fm=/^data:image\/(gif|png|jpeg|webp);/;function pm(e){var t=e.trim().toLowerCase();return!dm.test(t)||!!fm.test(t)}u(pm,"validateLink");var hm=["http:","https:","mailto:"];function mm(e){var t=lm.parse(e,!0);if(t.hostname&&(!t.protocol||hm.indexOf(t.protocol)>=0))try{t.hostname=um.toASCII(t.hostname)}catch(e){}return lm.encode(lm.format(t))}function gm(e){var t=lm.parse(e,!0);if(t.hostname&&(!t.protocol||hm.indexOf(t.protocol)>=0))try{t.hostname=um.toUnicode(t.hostname)}catch(e){}return lm.decode(lm.format(t),lm.decode.defaultChars+"%")}function vm(e,t){if(!(this instanceof vm))return new vm(e,t);t||tm.isString(e)||(t=e||{},e="default"),this.inline=new am,this.block=new om,this.core=new im,this.renderer=new rm,this.linkify=new sm,this.validateLink=pm,this.normalizeLink=mm,this.normalizeLinkText=gm,this.utils=tm,this.helpers=tm.assign({},nm),this.options={},this.configure(e),t&&this.set(t)}u(mm,"normalizeLink"),u(gm,"normalizeLinkText"),u(vm,"MarkdownIt"),vm.prototype.set=function(e){return tm.assign(this.options,e),this},vm.prototype.configure=function(e){var t,n=this;if(tm.isString(e)&&!(e=cm[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},vm.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},vm.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},vm.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},vm.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},vm.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},vm.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},vm.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const ym=new vm({breaks:!0,linkify:!0}),bm=(0,t.forwardRef)((e,t)=>{let{children:n,onlyShowFirstChild:r,type:i,...o}=e;return te("div",{...o,ref:t,className:jr("graphiql-markdown-"+i,r?" graphiql-markdown-preview":"",o.className),dangerouslySetInnerHTML:{__html:ym.render(n)}})});e.ay=bm,bm.displayName="MarkdownContent";const Em=(0,t.forwardRef)((e,t)=>te("div",{...e,ref:t,className:jr("graphiql-spinner",e.className)}));function Tm(e){var t,n,r=Qr(e),i=r.defaultView||window;return r?{width:null!=(t=r.documentElement.clientWidth)?t:i.innerWidth,height:null!=(n=r.documentElement.clientHeight)?n:i.innerHeight}:{width:0,height:0}}function wm(){return(wm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Cm(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}e.az=Em,Em.displayName="Spinner",u(Tm,"getDocumentDimensions"),u(wm,"_extends$1"),u(Cm,"_objectWithoutPropertiesLoose$1");var xm,Sm,Nm,km,_m,Om,Im,Lm,Am,Dm,Mm=["children","label","ariaLabel","id","DEBUG_STYLE"],Rm=["label","ariaLabel","isVisible","id"],Fm=["ariaLabel","aria-label","as","id","isVisible","label","position","style","triggerRect"],Pm=["type"];(Lm=Im||(Im={})).Idle="IDLE",Lm.Focused="FOCUSED",Lm.Visible="VISIBLE",Lm.LeavingVisible="LEAVING_VISIBLE",Lm.Dismissed="DISMISSED",(Dm=Am||(Am={})).Blur="BLUR",Dm.Focus="FOCUS",Dm.GlobalMouseMove="GLOBAL_MOUSE_MOVE",Dm.MouseDown="MOUSE_DOWN",Dm.MouseEnter="MOUSE_ENTER",Dm.MouseLeave="MOUSE_LEAVE",Dm.MouseMove="MOUSE_MOVE",Dm.Rest="REST",Dm.SelectWithKeyboard="SELECT_WITH_KEYBOARD",Dm.TimeComplete="TIME_COMPLETE";var jm,Vm,Um={initial:Im.Idle,states:(Om={},Om[Im.Idle]={enter:Qm,on:(xm={},xm[Am.MouseEnter]=Im.Focused,xm[Am.Focus]=Im.Visible,xm)},Om[Im.Focused]={enter:Gm,leave:Wm,on:(Sm={},Sm[Am.MouseMove]=Im.Focused,Sm[Am.MouseLeave]=Im.Idle,Sm[Am.MouseDown]=Im.Dismissed,Sm[Am.Blur]=Im.Idle,Sm[Am.Rest]=Im.Visible,Sm)},Om[Im.Visible]={on:(Nm={},Nm[Am.Focus]=Im.Focused,Nm[Am.MouseEnter]=Im.Focused,Nm[Am.MouseLeave]=Im.LeavingVisible,Nm[Am.Blur]=Im.LeavingVisible,Nm[Am.MouseDown]=Im.Dismissed,Nm[Am.SelectWithKeyboard]=Im.Dismissed,Nm[Am.GlobalMouseMove]=Im.LeavingVisible,Nm)},Om[Im.LeavingVisible]={enter:zm,leave:u((function(){Km(),Qm()}),"leave"),on:(km={},km[Am.MouseEnter]=Im.Visible,km[Am.Focus]=Im.Visible,km[Am.TimeComplete]=Im.Idle,km)},Om[Im.Dismissed]={leave:u((function(){Qm()}),"leave"),on:(_m={},_m[Am.MouseLeave]=Im.Idle,_m[Am.Blur]=Im.Idle,_m)},Om)},Bm={value:Um.initial,context:{id:null}},$m=[];function qm(e){return $m.push(e),function(){$m.splice($m.indexOf(e),1)}}function Hm(){$m.forEach((function(e){return e(Bm)}))}function Gm(){window.clearTimeout(jm),jm=window.setTimeout((function(){rg({type:Am.Rest})}),100)}function Wm(){window.clearTimeout(jm)}function zm(){window.clearTimeout(Vm),Vm=window.setTimeout((function(){return rg({type:Am.TimeComplete})}),500)}function Km(){window.clearTimeout(Vm)}function Qm(){Bm.context.id=null}function Ym(e){var n=void 0===e?{}:e,r=n.id,i=n.onPointerEnter,o=n.onPointerMove,a=n.onPointerLeave,s=n.onPointerDown,l=n.onMouseEnter,c=n.onMouseMove,d=n.onMouseLeave,f=n.onMouseDown,p=n.onFocus,h=n.onBlur,m=n.onKeyDown,g=n.disabled,v=n.ref,y=n.DEBUG_STYLE,b=String(Ls(r)),E=(0,t.useState)(!!y||og(b,!0)),T=E[0],w=E[1],C=(0,t.useRef)(null),x=ii(v,C),S=js(C,{observe:T});function N(e,t){return"undefined"!=typeof window&&"PointerEvent"in window?e:oi(e,t)}function k(e){return u((function(t){"mouse"===t.pointerType&&e(t)}),"onPointerEvent")}function _(){rg({type:Am.MouseEnter,id:b})}function O(){rg({type:Am.MouseMove,id:b})}function I(){rg({type:Am.MouseLeave})}function L(){Bm.context.id===b&&rg({type:Am.MouseDown})}function A(){window.__REACH_DISABLE_TOOLTIPS||rg({type:Am.Focus,id:b})}function D(){Bm.context.id===b&&rg({type:Am.Blur})}function M(e){"Enter"!==e.key&&" "!==e.key||rg({type:Am.SelectWithKeyboard})}return(0,t.useEffect)((function(){return qm((function(){w(og(b))}))}),[b]),(0,t.useEffect)((function(){var e=Qr(C.current);function t(e){"Escape"!==e.key&&"Esc"!==e.key||Bm.value!==Im.Visible||rg({type:Am.SelectWithKeyboard})}return u(t,"listener"),e.addEventListener("keydown",t),function(){return e.removeEventListener("keydown",t)}}),[]),ng({disabled:g,isVisible:T,ref:C}),u(N,"wrapMouseEvent"),u(k,"wrapPointerEventHandler"),u(_,"handleMouseEnter"),u(O,"handleMouseMove"),u(I,"handleMouseLeave"),u(L,"handleMouseDown"),u(A,"handleFocus"),u(D,"handleBlur"),u(M,"handleKeyDown"),[{"aria-describedby":T?Rl("tooltip",b):void 0,"data-state":T?"tooltip-visible":"tooltip-hidden","data-reach-tooltip-trigger":"",ref:x,onPointerEnter:oi(i,k(_)),onPointerMove:oi(o,k(O)),onPointerLeave:oi(a,k(I)),onPointerDown:oi(s,k(L)),onMouseEnter:N(l,_),onMouseMove:N(c,O),onMouseLeave:N(d,I),onMouseDown:N(f,L),onFocus:oi(p,A),onBlur:oi(h,D),onKeyDown:oi(m,M)},{id:b,triggerRect:S,isVisible:T},T]}u(qm,"subscribe"),u(Hm,"notify"),u(Gm,"startRestTimer"),u(Wm,"clearRestTimer"),u(zm,"startLeavingVisibleTimer"),u(Km,"clearLeavingVisibleTimer"),u(Qm,"clearContextId"),u(Ym,"useTooltip");var Jm=(0,t.forwardRef)((function(e,n){var r=e.children,i=e.label,o=e.ariaLabel,a=e.id,s=e.DEBUG_STYLE,l=Cm(e,Mm),u=t.Children.only(r),c=Ym({id:a,onPointerEnter:u.props.onPointerEnter,onPointerMove:u.props.onPointerMove,onPointerLeave:u.props.onPointerLeave,onPointerDown:u.props.onPointerDown,onMouseEnter:u.props.onMouseEnter,onMouseMove:u.props.onMouseMove,onMouseLeave:u.props.onMouseLeave,onMouseDown:u.props.onMouseDown,onFocus:u.props.onFocus,onBlur:u.props.onBlur,onKeyDown:u.props.onKeyDown,disabled:u.props.disabled,ref:u.ref,DEBUG_STYLE:s}),d=c[0],f=c[1];return(0,t.createElement)(t.Fragment,null,(0,t.cloneElement)(u,d),(0,t.createElement)(Xm,wm({ref:n,label:i,"aria-label":o},f,l)))}));e.aC=Jm;var Xm=(0,t.forwardRef)(u((function(e,n){var r=e.label,i=e.ariaLabel,o=e.isVisible,a=e.id,s=Cm(e,Rm);return o?(0,t.createElement)(Kr,null,(0,t.createElement)(Zm,wm({ref:n,label:r,"aria-label":i,isVisible:o},s,{id:Rl("tooltip",String(a))}))):null}),"TooltipPopup")),Zm=(0,t.forwardRef)(u((function(e,n){var r=e.ariaLabel,i=e["aria-label"],o=e.as,a=void 0===o?"div":o,s=e.id,l=e.isVisible,u=e.label,c=e.position,d=void 0===c?tg:c,f=e.style,p=e.triggerRect,h=Cm(e,Fm),m=null!=(i||r),g=(0,t.useRef)(null),v=ii(n,g),y=js(g,{observe:l});return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(a,wm({role:m?void 0:"tooltip"},h,{ref:v,"data-reach-tooltip":"",id:m?void 0:s,style:wm({},f,eg(d,p,y))}),u),m&&(0,t.createElement)(ws,{role:"tooltip",id:s},i||r))}),"TooltipContent"));function eg(e,t,n){return n?e(t,n):{visibility:"hidden"}}u(eg,"getStyles");var tg=u((function(e,t,n){void 0===n&&(n=8);var r=Tm(),i=r.width,o=r.height;if(!e||!t)return{};var a={top:e.top-t.height<0,right:i<e.left+t.width,bottom:o<e.bottom+t.height+n,left:e.left-t.width<0},s=a.bottom&&!a.top;return{left:a.right&&!a.left?e.right-t.width+window.pageXOffset+"px":e.left+window.pageXOffset+"px",top:s?e.top-n-t.height+window.pageYOffset+"px":e.top+n+e.height+window.pageYOffset+"px"}}),"positionTooltip");function ng(e){var n=e.disabled,r=e.isVisible,i=e.ref;(0,t.useEffect)((function(){if("undefined"!=typeof window&&"PointerEvent"in window&&n&&r){var e=Qr(i.current);return u(t,"handleMouseMove"),e.addEventListener("mousemove",t),function(){e.removeEventListener("mousemove",t)}}function t(e){r&&(e.target instanceof Element&&e.target.closest("[data-reach-tooltip-trigger][data-state='tooltip-visible']")||rg({type:Am.GlobalMouseMove}))}}),[n,r,i])}function rg(e){var t=ig(Bm,e),n=t.value,r=t.context;t.changed&&(Bm={value:n,context:r},Hm())}function ig(e,t){var n=Um.states[e.value],r=n&&n.on&&n.on[t.type];if(!r)return wm({},e,{changed:!1});n&&n.leave&&n.leave(e.context,t),t.type;var i=Cm(t,Pm),o=wm({},Bm.context,i),a="string"==typeof r?r:r.target,s=Um.states[a];return s&&s.enter&&s.enter(e.context,t),{value:a,context:o,changed:!0}}function og(e,t){return Bm.context.id===e&&(t?Bm.value===Im.Visible:Bm.value===Im.Visible||Bm.value===Im.LeavingVisible)}u(ng,"useDisabledTriggerOnSafari"),u(rg,"send"),u(ig,"transition"),u(og,"isTooltipVisible");const ag=(0,t.forwardRef)((e,t)=>{let{isActive:n,...r}=e;return te("div",{...r,ref:t,role:"tab","aria-selected":n,className:jr("graphiql-tab",n?"graphiql-tab-active":"",r.className),children:r.children})});ag.displayName="Tab";const sg=(0,t.forwardRef)((e,t)=>te(Vr,{...e,ref:t,type:"button",className:jr("graphiql-tab-button",e.className),children:e.children}));sg.displayName="Tab.Button";const lg=(0,t.forwardRef)((e,t)=>te(Jm,{label:"Close Tab",children:te(Vr,{"aria-label":"Close Tab",...e,ref:t,type:"button",className:jr("graphiql-tab-close",e.className),children:te(ur,{})})}));lg.displayName="Tab.Close";const ug=xs(ag,{Button:sg,Close:lg});e.aA=ug;const cg=(0,t.forwardRef)((e,t)=>te("div",{...e,ref:t,role:"tablist",className:jr("graphiql-tabs",e.className),children:e.children}));e.aB=cg,cg.displayName="Tabs";var dg=Object.defineProperty,fg=u((e,t)=>dg(e,"name",{value:t,configurable:!0}),"__name$C");const pg=V("HistoryContext");function hg(e){var n;const r=le(),i=(0,t.useRef)(new F(r||new D(null),e.maxHistoryLength||gg)),[o,a]=(0,t.useState)((null==(n=i.current)?void 0:n.queries)||[]),s=(0,t.useCallback)(e=>{let{query:t,variables:n,headers:r,operationName:o}=e;var s;null==(s=i.current)||s.updateHistory(t,n,r,o),a(i.current.queries)},[]),l=(0,t.useCallback)(e=>{let{query:t,variables:n,headers:r,operationName:o,label:s,favorite:l}=e;i.current.editLabel(t,n,r,o,s,l),a(i.current.queries)},[]),u=(0,t.useCallback)(e=>{let{query:t,variables:n,headers:r,operationName:o,label:s,favorite:l}=e;i.current.toggleFavorite(t,n,r,o,s,l),a(i.current.queries)},[]),c=(0,t.useMemo)(()=>({addToHistory:s,editLabel:l,items:o,toggleFavorite:u}),[s,l,o,u]);return te(pg.Provider,{value:c,children:e.children})}e.z=pg,u(hg,"HistoryContextProvider"),fg(hg,"HistoryContextProvider");const mg=U(pg);e.C=mg;const gg=20;var vg=Object.defineProperty,yg=u((e,t)=>vg(e,"name",{value:t,configurable:!0}),"__name$B");function bg(){const{items:e}=mg({nonNull:!0}),n=e.slice().reverse();return ne("section",{"aria-label":"History",className:"graphiql-history",children:[te("div",{className:"graphiql-history-header",children:"History"}),te("ul",{className:"graphiql-history-items",children:n.map((e,r)=>ne(t.Fragment,{children:[te(Eg,{item:e}),e.favorite&&n[r+1]&&!n[r+1].favorite?te("div",{className:"graphiql-history-item-spacer"}):null]},`${r}:${e.label||e.query}`))})]})}function Eg(e){const{editLabel:n,toggleFavorite:r}=mg({nonNull:!0,caller:Eg}),{headerEditor:i,queryEditor:o,variableEditor:a}=iE({nonNull:!0,caller:Eg}),s=(0,t.useRef)(null),l=(0,t.useRef)(null),[u,c]=(0,t.useState)(!1);(0,t.useEffect)(()=>{u&&s.current&&s.current.focus()},[u]);const d=e.item.label||e.item.operationName||Tg(e.item.query);return te("li",{className:"graphiql-history-item"+(u?" editable":""),children:ne(re,u?{children:[te("input",{type:"text",defaultValue:e.item.label,ref:s,onKeyDown:t=>{27===t.keyCode?c(!1):13===t.keyCode&&(c(!1),n({...e.item,label:t.currentTarget.value}))},placeholder:"Type a label"}),te(Vr,{type:"button",ref:l,onClick:()=>{var t;c(!1),n({...e.item,label:null==(t=s.current)?void 0:t.value})},children:"Save"}),te(Vr,{type:"button",ref:l,onClick:()=>{c(!1)},children:te(ur,{})})]}:{children:[te(Vr,{type:"button",className:"graphiql-history-item-label",onClick:()=>{var t,n,r;null==o||o.setValue(null!=(t=e.item.query)?t:""),null==a||a.setValue(null!=(n=e.item.variables)?n:""),null==i||i.setValue(null!=(r=e.item.headers)?r:"")},children:d}),te(Jm,{label:"Edit label",children:te(Vr,{type:"button",className:"graphiql-history-item-action",onClick:e=>{e.stopPropagation(),c(!0)},"aria-label":"Edit label",children:te(xr,{"aria-hidden":"true"})})}),te(Jm,{label:e.item.favorite?"Remove favorite":"Add favorite",children:te(Vr,{type:"button",className:"graphiql-history-item-action",onClick:t=>{t.stopPropagation(),r(e.item)},"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?te(Lr,{"aria-hidden":"true"}):te(Ar,{"aria-hidden":"true"})})})]})})}function Tg(e){return null==e?void 0:e.split("\n").map(e=>e.replace(/#(.*)/,"")).join(" ").replace(/{/g," { ").replace(/}/g," } ").replace(/[\s]{2,}/g," ")}u(bg,"History"),yg(bg,"History"),u(Eg,"HistoryItem"),yg(Eg,"HistoryItem"),u(Tg,"formatQuery"),yg(Tg,"formatQuery");var wg=Object.defineProperty,Cg=u((e,t)=>wg(e,"name",{value:t,configurable:!0}),"__name$A");const xg=V("ExecutionContext");function Sg(e){if(!e.fetcher)throw new TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");const{externalFragments:n,headerEditor:r,queryEditor:o,responseEditor:a,variableEditor:s,updateActiveTabValues:l}=iE({nonNull:!0,caller:Sg}),u=mg(),c=pb({getDefaultFieldNames:e.getDefaultFieldNames,caller:Sg}),[d,h]=(0,t.useState)(!1),[m,g]=(0,t.useState)(null),v=(0,t.useRef)(0),y=(0,t.useCallback)(()=>{null==m||m.unsubscribe(),h(!1),g(null)},[m]),{fetcher:b}=e,w=(0,t.useCallback)(async()=>{var t,d,w;if(!o||!a)return;if(m)return void y();const C=Cg(e=>{a.setValue(e),l({response:e})},"setResponse");v.current+=1;const x=v.current;let S=c()||o.getValue();const N=null==s?void 0:s.getValue();let k;try{k=kg({json:N,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(e){return void C(e instanceof Error?e.message:""+e)}const _=null==r?void 0:r.getValue();let O;try{O=kg({json:_,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(e){return void C(e instanceof Error?e.message:""+e)}if(n){const e=o.documentAST?on(o.documentAST,n):[];e.length>0&&(S+="\n"+e.map(e=>(0,i.print)(e)).join("\n"))}C(""),h(!0);const I=null!=(d=null!=(t=e.operationName)?t:o.operationName)?d:void 0;null==u||u.addToHistory({query:S,variables:N,headers:_,operationName:I});try{let e={data:{}};const t=Cg(t=>{if(x!==v.current)return;let n=!!Array.isArray(t)&&t;if(!n&&"object"==typeof t&&null!==t&&"hasNext"in t&&(n=[t]),n){const t={data:e.data},r=[...(null==e?void 0:e.errors)||[],...n.map(e=>e.errors).flat().filter(Boolean)];r.length&&(t.errors=r);for(const r of n){const{path:n,data:i,errors:o,...a}=r;if(n){if(!i)throw new Error("Expected part to contain a data property, but got "+r);Nn(t.data,n,i,{merge:!0})}else i&&(t.data=r.data);e={...t,...a}}h(!1),C(T(e))}else{const e=T(t);h(!1),C(e)}},"handleResponse"),n=b({query:S,variables:k,operationName:I},{headers:null!=O?O:void 0,documentAST:null!=(w=o.documentAST)?w:void 0}),r=await Promise.resolve(n);if(f(r))g(r.subscribe({next(e){t(e)},error(e){h(!1),e&&C(E(e)),g(null)},complete(){h(!1),g(null)}}));else if(p(r)){g({unsubscribe:()=>{var e,t;return null==(t=(e=r[Symbol.asyncIterator]()).return)?void 0:t.call(e)}});try{for await(const e of r)t(e);h(!1),g(null)}catch(e){h(!1),C(E(e)),g(null)}}else t(r)}catch(e){h(!1),C(E(e)),g(null)}},[c,n,b,r,u,e.operationName,o,a,y,m,l,s]),C=(0,t.useMemo)(()=>{var t;return{isFetching:d,operationName:null!=(t=e.operationName)?t:null,run:w,stop:y}},[d,e.operationName,w,y]);return te(xg.Provider,{value:C,children:e.children})}e.k=xg,u(Sg,"ExecutionContextProvider"),Cg(Sg,"ExecutionContextProvider");const Ng=U(xg);function kg(e){let{json:t,errorMessageParse:n,errorMessageType:r}=e,i=void 0;try{i=t&&""!==t.trim()?JSON.parse(t):void 0}catch(e){throw new Error(`${n}: ${e instanceof Error?e.message:e}.`)}const o="object"==typeof i&&null!==i&&!Array.isArray(i);if(void 0!==i&&!o)throw new Error(r);return i}e.m=Ng,u(kg,"tryParseJsonObject"),Cg(kg,"tryParseJsonObject");var _g=Object.defineProperty,Og=u((e,t)=>_g(e,"name",{value:t,configurable:!0}),"__name$z");const Ig="graphiql",Lg="sublime";let Ag=!1;"object"==typeof window&&(Ag=0===window.navigator.platform.toLowerCase().indexOf("mac"));const Dg={[Ag?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function Mg(e,t){const r=await Promise.resolve().then(n.t.bind(null,0,7)).then((function(e){return e.c})).then(e=>"function"==typeof e?e:e.default);return await Promise.all(!1===(null==t?void 0:t.useCommonAddons)?e:[Promise.resolve().then(n.t.bind(null,13,7)).then((function(e){return e.s})),Promise.resolve().then(n.t.bind(null,14,7)).then((function(e){return e.m})),Promise.resolve().then(n.t.bind(null,47,7)).then((function(e){return e.c})),Promise.resolve().then(n.t.bind(null,15,7)).then((function(e){return e.b})),Promise.resolve().then(n.t.bind(null,16,7)).then((function(e){return e.f})),Promise.resolve().then(n.t.bind(null,48,7)).then((function(e){return e.l})),Promise.resolve().then(n.t.bind(null,6,7)).then((function(e){return e.s})),Promise.resolve().then(n.t.bind(null,17,7)).then((function(e){return e.j})),Promise.resolve().then(n.t.bind(null,7,7)).then((function(e){return e.d})),Promise.resolve().then(n.t.bind(null,18,7)).then((function(e){return e.s})),...e]),r}u(Mg,"importCodeMirror"),Og(Mg,"importCodeMirror");var Rg=u((function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}),"toggleSelection"),Fg={"text/plain":"Text","text/html":"Url",default:"Text"};function Pg(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function jg(e,t){var n,r,i,o,a,s,l=!1;t||(t={}),n=t.debug||!1;try{if(i=Rg(),o=document.createRange(),a=document.getSelection(),(s=document.createElement("span")).textContent=e,s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=Fg[t.format]||Fg.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(i){n&&console.error("unable to copy using execCommand: ",i),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(i){n&&console.error("unable to copy using clipboardData: ",i),n&&console.error("falling back to prompt"),r=Pg("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}u(Pg,"format"),u(jg,"copy");var Vg=jg,Ug=Object.defineProperty,Bg=u((e,t)=>Ug(e,"name",{value:t,configurable:!0}),"__name$y");const $g=Bg(e=>e?(0,i.print)(e):"","printDefault");function qg(e){let{field:t}=e;if(!("defaultValue"in t)||void 0===t.defaultValue)return null;const n=(0,i.astFromValue)(t.defaultValue,t.type);return n?ne(re,{children:[" = ",te("span",{className:"graphiql-doc-explorer-default-value",children:$g(n)})]}):null}u(qg,"DefaultValue"),Bg(qg,"DefaultValue");var Hg=Object.defineProperty,Gg=u((e,t)=>Hg(e,"name",{value:t,configurable:!0}),"__name$x");const Wg=V("SchemaContext");function zg(e){if(!e.fetcher)throw new TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");const{initialHeaders:n,headerEditor:r}=iE({nonNull:!0,caller:zg}),[o,a]=(0,t.useState)(),[s,l]=(0,t.useState)(!1),[d,f]=(0,t.useState)(null),p=(0,t.useRef)(0);(0,t.useEffect)(()=>{a((0,i.isSchema)(e.schema)||null===e.schema||void 0===e.schema?e.schema:void 0),p.current++},[e.schema]);const h=(0,t.useRef)(n);(0,t.useEffect)(()=>{r&&(h.current=r.getValue())});const{introspectionQuery:g,introspectionQueryName:v,introspectionQuerySansSubscriptions:y}=Qg({inputValueDeprecation:e.inputValueDeprecation,introspectionQueryName:e.introspectionQueryName,schemaDescription:e.schemaDescription}),{fetcher:b,onSchemaChange:w}=e,C=(0,t.useCallback)(()=>{if((0,i.isSchema)(e.schema)||null===e.schema)return;const t=++p.current;a(void 0);const n=e.schema;async function r(){if(n)return n;const e=Yg(h.current);if(!e.isValidJSON)return void f("Introspection failed as headers are invalid.");const t=e.headers?{headers:e.headers}:{},r=m(b({query:g,operationName:v},t));if(!c(r))return void f("Fetcher did not return a Promise for introspection.");l(!0),f(null);let i=await r;if("object"!=typeof i||null===i||!("data"in i)){const e=m(b({query:y,operationName:v},t));if(!c(e))throw new Error("Fetcher did not return a Promise for introspection.");i=await e}if(l(!1),(null==i?void 0:i.data)&&"__schema"in i.data)return i.data;const o="string"==typeof i?i:T(i);f(o)}u(r,"fetchIntrospectionData"),Gg(r,"fetchIntrospectionData"),r().then(e=>{if(t===p.current&&e)try{const t=(0,i.buildClientSchema)(e);a(t),null==w||w(t)}catch(e){f(E(e))}}).catch(e=>{t===p.current&&(f(E(e)),l(!1))})},[b,v,g,y,w,e.schema]);(0,t.useEffect)(()=>{C()},[C]),(0,t.useEffect)(()=>{function e(e){82===e.keyCode&&e.shiftKey&&e.ctrlKey&&C()}return u(e,"triggerIntrospection"),Gg(e,"triggerIntrospection"),window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)});const x=(0,t.useMemo)(()=>!o||e.dangerouslyAssumeSchemaIsValid?[]:(0,i.validateSchema)(o),[o,e.dangerouslyAssumeSchemaIsValid]),S=(0,t.useMemo)(()=>({fetchError:d,introspect:C,isFetching:s,schema:o,validationErrors:x}),[d,C,s,o,x]);return te(Wg.Provider,{value:S,children:e.children})}e.M=Wg,u(zg,"SchemaContextProvider"),Gg(zg,"SchemaContextProvider");const Kg=U(Wg);function Qg(e){let{inputValueDeprecation:n,introspectionQueryName:r,schemaDescription:o}=e;return(0,t.useMemo)(()=>{const e=r||"IntrospectionQuery";let t=(0,i.getIntrospectionQuery)({inputValueDeprecation:n,schemaDescription:o});r&&(t=t.replace("query IntrospectionQuery","query "+e));const a=t.replace("subscriptionType { name }","");return{introspectionQueryName:e,introspectionQuery:t,introspectionQuerySansSubscriptions:a}},[n,r,o])}function Yg(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch(e){n=!1}return{headers:t,isValidJSON:n}}e.O=Kg,u(Qg,"useIntrospectionQuery"),Gg(Qg,"useIntrospectionQuery"),u(Yg,"parseHeaderString"),Gg(Yg,"parseHeaderString");var Jg=Object.defineProperty,Xg=u((e,t)=>Jg(e,"name",{value:t,configurable:!0}),"__name$w");const Zg={name:"Docs"},ev=V("ExplorerContext");function tv(e){const{isFetching:n}=Kg({nonNull:!0,caller:tv}),[r,i]=(0,t.useState)([Zg]),o=(0,t.useCallback)(e=>{i(t=>t[t.length-1].def===e.def?t:[...t,e])},[]),a=(0,t.useCallback)(()=>{i(e=>e.length>1?e.slice(0,-1):e)},[]),s=(0,t.useCallback)(()=>{i(e=>1===e.length?e:[Zg])},[]);(0,t.useEffect)(()=>{n&&s()},[n,s]);const l=(0,t.useMemo)(()=>({explorerNavStack:r,push:o,pop:a,reset:s}),[r,o,a,s]);return te(ev.Provider,{value:l,children:e.children})}e.q=ev,u(tv,"ExplorerContextProvider"),Xg(tv,"ExplorerContextProvider");const nv=U(ev);e.x=nv;var rv=Object.defineProperty,iv=u((e,t)=>rv(e,"name",{value:t,configurable:!0}),"__name$v");function ov(e,t){return(0,i.isNonNullType)(e)?ne(re,{children:[ov(e.ofType,t),"!"]}):(0,i.isListType)(e)?ne(re,{children:["[",ov(e.ofType,t),"]"]}):t(e)}u(ov,"renderType"),iv(ov,"renderType");var av=Object.defineProperty,sv=u((e,t)=>av(e,"name",{value:t,configurable:!0}),"__name$u");function lv(e){const{push:t}=nv({nonNull:!0,caller:lv});return e.type?ov(e.type,e=>te("a",{className:"graphiql-doc-explorer-type-name",onClick:n=>{n.preventDefault(),t({name:e.name,def:e})},href:"#",children:e.name})):null}u(lv,"TypeLink"),sv(lv,"TypeLink");var uv=Object.defineProperty,cv=u((e,t)=>uv(e,"name",{value:t,configurable:!0}),"__name$t");function dv(e){let{arg:t,showDefaultValue:n,inline:r}=e;const i=ne("span",{children:[te("span",{className:"graphiql-doc-explorer-argument-name",children:t.name}),": ",te(lv,{type:t.type}),!1!==n&&te(qg,{field:t})]});return r?i:ne("div",{className:"graphiql-doc-explorer-argument",children:[i,t.description?te(bm,{type:"description",children:t.description}):null,t.deprecationReason?ne("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[te("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),te(bm,{type:"deprecation",children:t.deprecationReason})]}):null]})}u(dv,"Argument"),cv(dv,"Argument");var fv=Object.defineProperty,pv=u((e,t)=>fv(e,"name",{value:t,configurable:!0}),"__name$s");function hv(e){return e.children?ne("div",{className:"graphiql-doc-explorer-deprecation",children:[te("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),te(bm,{type:"deprecation",onlyShowFirstChild:!0,children:e.children})]}):null}u(hv,"DeprecationReason"),pv(hv,"DeprecationReason");var mv=Object.defineProperty,gv=u((e,t)=>mv(e,"name",{value:t,configurable:!0}),"__name$r");function vv(e){let{directive:t}=e;return ne("span",{className:"graphiql-doc-explorer-directive",children:["@",t.name.value]})}u(vv,"Directive"),gv(vv,"Directive");var yv=Object.defineProperty,bv=u((e,t)=>yv(e,"name",{value:t,configurable:!0}),"__name$q");function Ev(e){const t=Tv[e.title];return ne("div",{children:[ne("div",{className:"graphiql-doc-explorer-section-title",children:[te(t,{}),e.title]}),te("div",{className:"graphiql-doc-explorer-section-content",children:e.children})]})}u(Ev,"ExplorerSection"),bv(Ev,"ExplorerSection");const Tv={Arguments:or,"Deprecated Arguments":dr,"Deprecated Enum Values":fr,"Deprecated Fields":pr,Directives:hr,"Enum Values":vr,Fields:yr,Implements:Er,Implementations:Mr,"Possible Types":Mr,"Root Types":Or,Type:Mr};var wv=Object.defineProperty,Cv=u((e,t)=>wv(e,"name",{value:t,configurable:!0}),"__name$p");function xv(e){return ne(re,{children:[e.field.description?te(bm,{type:"description",children:e.field.description}):null,te(hv,{children:e.field.deprecationReason}),te(Ev,{title:"Type",children:te(lv,{type:e.field.type})}),te(Sv,{field:e.field}),te(Nv,{field:e.field})]})}function Sv(e){let{field:n}=e;const[r,i]=(0,t.useState)(!1);if(!("args"in n))return null;const o=[],a=[];for(const e of n.args)e.deprecationReason?a.push(e):o.push(e);return ne(re,{children:[o.length>0?te(Ev,{title:"Arguments",children:o.map(e=>te(dv,{arg:e},e.name))}):null,a.length>0?r||0===o.length?te(Ev,{title:"Deprecated Arguments",children:a.map(e=>te(dv,{arg:e},e.name))}):te(Ur,{type:"button",onClick:()=>{i(!0)},children:"Show Deprecated Arguments"}):null]})}function Nv(e){let{field:t}=e;var n;const r=(null==(n=t.astNode)?void 0:n.directives)||[];return r&&0!==r.length?te(Ev,{title:"Directives",children:r.map(e=>te("div",{children:te(vv,{directive:e})},e.name.value))}):null}u(xv,"FieldDocumentation"),Cv(xv,"FieldDocumentation"),u(Sv,"Arguments"),Cv(Sv,"Arguments"),u(Nv,"Directives"),Cv(Nv,"Directives");var kv=Object.defineProperty,_v=u((e,t)=>kv(e,"name",{value:t,configurable:!0}),"__name$o");function Ov(e){var t,n,r,i;const o=e.schema.getQueryType(),a=null==(n=(t=e.schema).getMutationType)?void 0:n.call(t),s=null==(i=(r=e.schema).getSubscriptionType)?void 0:i.call(r);return ne(re,{children:[te(bm,{type:"description",children:e.schema.description||"A GraphQL schema provides a root type for each kind of operation."}),ne(Ev,{title:"Root Types",children:[o?ne("div",{children:[te("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",te(lv,{type:o})]}):null,a&&ne("div",{children:[te("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",te(lv,{type:a})]}),s&&ne("div",{children:[te("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",te(lv,{type:s})]})]})]})}function Iv(e,n){var r=(0,t.useRef)(!1);(0,t.useEffect)((function(){r.current?e():r.current=!0}),n)}function Lv(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function Av(){return(Av=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Dv(e){var t=e.autoEscape,n=e.caseSensitive,r=void 0!==n&&n,i=e.findChunks,o=void 0===i?Rv:i,a=e.sanitize,s=e.searchWords,l=e.textToHighlight;return Fv({chunksToHighlight:Mv({chunks:o({autoEscape:t,caseSensitive:r,sanitize:a,searchWords:s,textToHighlight:l})}),totalLength:l?l.length:0})}function Mv(e){return e.chunks.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])}function Rv(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,i=void 0===r?Pv:r,o=e.searchWords,a=e.textToHighlight;return a=i(a||""),o.filter((function(e){return e})).reduce((function(e,r){r=i(r),t&&(r=jv(r));for(var o,s=new RegExp(r,n?"g":"gi");o=s.exec(a||"");){var l=o.index,u=s.lastIndex;u>l&&e.push({highlight:!1,start:l,end:u}),o.index===s.lastIndex&&s.lastIndex++}return e}),[])}function Fv(e){var t=e.chunksToHighlight,n=e.totalLength,r=[];if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r;function o(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})}}function Pv(e){return e}function jv(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}u(Ov,"SchemaDocumentation"),_v(Ov,"SchemaDocumentation"),u(Iv,"useUpdateEffect"),u(Lv,"_objectWithoutPropertiesLoose"),u(Av,"_extends"),u(Dv,"findAll"),u(Mv,"combineChunks"),u(Rv,"defaultFindChunks"),u(Fv,"fillInChunks"),u(Pv,"defaultSanitize"),u(jv,"escapeRegExpFn");var Vv,Uv,Bv,$v,qv,Hv={combineChunks:Mv,fillInChunks:Fv,findAll:Dv,findChunks:Rv},Gv=["onSelect","openOnFocus","children","as","aria-label","aria-labelledby"],Wv=["as","selectOnClick","autocomplete","onClick","onChange","onKeyDown","onBlur","onFocus","value"],zv=["as","children","portal","onKeyDown","onBlur","position"],Kv=["persistSelection","as"],Qv=["as","children","index","value","onClick"],Yv="IDLE",Jv="SUGGESTING",Xv="NAVIGATING",Zv="INTERACTING",ey="NAVIGATE",ty={initial:Yv,states:(qv={},qv[Yv]={on:(Vv={},Vv.BLUR=Yv,Vv.CLEAR=Yv,Vv.CHANGE=Jv,Vv.INITIAL_CHANGE=Yv,Vv.FOCUS=Jv,Vv[ey]=Xv,Vv.OPEN_WITH_BUTTON=Jv,Vv.OPEN_WITH_INPUT_CLICK=Jv,Vv)},qv[Jv]={on:(Uv={},Uv.CHANGE=Jv,Uv.FOCUS=Jv,Uv[ey]=Xv,Uv.CLEAR=Yv,Uv.ESCAPE=Yv,Uv.BLUR=Yv,Uv.SELECT_WITH_CLICK=Yv,Uv.INTERACT=Zv,Uv.CLOSE_WITH_BUTTON=Yv,Uv)},qv[Xv]={on:(Bv={},Bv.CHANGE=Jv,Bv.FOCUS=Jv,Bv.CLEAR=Yv,Bv.BLUR=Yv,Bv.ESCAPE=Yv,Bv[ey]=Xv,Bv.SELECT_WITH_CLICK=Yv,Bv.SELECT_WITH_KEYBOARD=Yv,Bv.CLOSE_WITH_BUTTON=Yv,Bv.INTERACT=Zv,Bv)},qv[Zv]={on:($v={},$v.CLEAR=Yv,$v.CHANGE=Jv,$v.FOCUS=Jv,$v.BLUR=Yv,$v.ESCAPE=Yv,$v[ey]=Xv,$v.CLOSE_WITH_BUTTON=Yv,$v.SELECT_WITH_CLICK=Yv,$v)},qv)},ny=u((function(e,t){var n=Av({},e,{lastEventType:t.type});switch(t.type){case"CHANGE":case"INITIAL_CHANGE":return Av({},n,{navigationValue:null,value:t.value});case ey:case"OPEN_WITH_BUTTON":case"OPEN_WITH_INPUT_CLICK":return Av({},n,{navigationValue:iy(n,t)});case"CLEAR":return Av({},n,{value:"",navigationValue:null});case"BLUR":case"ESCAPE":return Av({},n,{navigationValue:null});case"SELECT_WITH_CLICK":return Av({},n,{value:t.isControlled?e.value:t.value,navigationValue:null});case"SELECT_WITH_KEYBOARD":return Av({},n,{value:t.isControlled?e.value:e.navigationValue,navigationValue:null});case"CLOSE_WITH_BUTTON":return Av({},n,{navigationValue:null});case"INTERACT":return n;case"FOCUS":return Av({},n,{navigationValue:iy(n,t)});default:return n}}),"reducer");function ry(e){return[Jv,Xv,Zv].includes(e)}function iy(e,t){return t.value?t.value:t.persistSelection?e.value:null}u(ry,"popoverIsExpanded"),u(iy,"findNavigationValue");var oy=El(),ay=Dl(0,{}),sy=Dl(0,{}),ly=(0,t.forwardRef)((function(e,n){var r,i=e.onSelect,o=e.openOnFocus,a=void 0!==o&&o,s=e.children,l=e.as,u=void 0===l?"div":l,c=e["aria-label"],d=e["aria-labelledby"],f=Lv(e,Gv),p=wl(),h=p[0],m=p[1],g=(0,t.useRef)(),v=(0,t.useRef)(),y=(0,t.useRef)(),b=(0,t.useRef)(!1),E=(0,t.useRef)(!1),T=vy(ty,ny,{value:"",navigationValue:null}),w=T[0],C=T[1],x=T[2];hy(C.lastEventType,g);var S=Ls(f.id),N=S?Rl("listbox",S):"listbox",k=(0,t.useRef)(!1),_=ry(w),O={ariaLabel:c,ariaLabelledby:d,autocompletePropRef:b,buttonRef:y,comboboxId:S,data:C,inputRef:g,isExpanded:_,listboxId:N,onSelect:i||Zr,openOnFocus:a,persistSelectionRef:E,popoverRef:v,state:w,transition:x,isControlledRef:k};return(0,t.createElement)(xl,{context:oy,items:h,set:m},(0,t.createElement)(ay.Provider,{value:O},(0,t.createElement)(u,Av({},f,{"data-reach-combobox":"","data-state":by(w),"data-expanded":_||void 0,ref:n}),Jr(s)?s({id:S,isExpanded:_,navigationValue:null!=(r=C.navigationValue)?r:null,state:w}):s)))})),uy=(0,t.forwardRef)((function(e,n){var r=e.as,i=void 0===r?"input":r,o=e.selectOnClick,a=void 0!==o&&o,s=e.autocomplete,l=void 0===s||s,c=e.onClick,d=e.onChange,f=e.onKeyDown,p=e.onBlur,h=e.onFocus,m=e.value,g=Lv(e,Wv),v=(0,t.useRef)(m).current,y=(0,t.useRef)(!1);Iv((function(){y.current=!0}),[m]);var b=(0,t.useContext)(ay),E=b.data,T=E.navigationValue,w=E.value,C=E.lastEventType,x=b.inputRef,S=b.state,N=b.transition,k=b.listboxId,_=b.autocompletePropRef,O=b.openOnFocus,I=b.isExpanded,L=b.ariaLabel,A=b.ariaLabelledby,D=b.persistSelectionRef,M=b.isControlledRef,R=ii(x,n),F=(0,t.useRef)(!1),P=my(),j=gy(),V=void 0!==m;(0,t.useEffect)((function(){M.current=V}),[V]),qr((function(){_.current=l}),[l,_]);var U=(0,t.useCallback)((function(e){""===e.trim()?N("CLEAR",{isControlled:V}):e!==v||y.current?N("CHANGE",{value:e}):N("INITIAL_CHANGE",{value:e})}),[v,N,V]);function B(e){var t=e.target.value;V||U(t)}function $(){a&&(F.current=!0),O&&"SELECT_WITH_CLICK"!==C&&N("FOCUS",{persistSelection:D.current})}function q(){var e;F.current&&(F.current=!1,null==(e=x.current)||e.select()),O&&S===Yv&&N("OPEN_WITH_INPUT_CLICK")}(0,t.useEffect)((function(){!V||m===w||""===m.trim()&&""===(w||"").trim()||U(m)}),[m,U,V,w]),u(B,"handleChange"),u($,"handleFocus"),u(q,"handleClick");var H=!l||S!==Xv&&S!==Zv?m||w:T||m||w;return(0,t.createElement)(i,Av({"aria-activedescendant":T?String(yy(T)):void 0,"aria-autocomplete":"both","aria-controls":k,"aria-expanded":I,"aria-haspopup":"listbox","aria-label":L,"aria-labelledby":L?void 0:A,role:"combobox"},g,{"data-reach-combobox-input":"","data-state":by(S),ref:R,onBlur:oi(p,j),onChange:oi(d,B),onClick:oi(c,q),onFocus:oi(h,$),onKeyDown:oi(f,P),value:H||""}))})),cy=(0,t.forwardRef)((function(e,n){var r=e.as,i=void 0===r?"div":r,o=e.children,a=e.portal,s=void 0===a||a,l=e.onKeyDown,u=e.onBlur,c=e.position,d=void 0===c?hl:c,f=Lv(e,zv),p=(0,t.useContext)(ay),h=p.popoverRef,m=p.inputRef,g=p.isExpanded,v=p.state,y=ii(h,n),b=my(),E=gy(),T={"data-reach-combobox-popover":"","data-state":by(v),onKeyDown:oi(l,b),onBlur:oi(u,E),hidden:!g,tabIndex:-1,children:o};return s?(0,t.createElement)(ul,Av({as:i},f,{ref:y,"data-expanded":g||void 0,position:d,targetRef:m,unstable_skipInitialPortalRender:!0},T)):(0,t.createElement)(i,Av({ref:y},f,T))})),dy=(0,t.forwardRef)((function(e,n){var r=e.persistSelection,i=void 0!==r&&r,o=e.as,a=void 0===o?"ul":o,s=Lv(e,Kv),l=(0,t.useContext)(ay),u=l.persistSelectionRef,c=l.listboxId;return i&&(u.current=!0),(0,t.createElement)(a,Av({role:"listbox"},s,{ref:n,"data-reach-combobox-list":"",id:c}))})),fy=(0,t.forwardRef)((function(e,n){var r=e.as,i=void 0===r?"li":r,o=e.children,a=e.index,s=e.value,l=e.onClick,c=Lv(e,Qv),d=(0,t.useContext)(ay),f=d.onSelect,p=d.data.navigationValue,h=d.transition,m=d.isControlledRef,g=Fl((0,t.useRef)(null),null),v=g[0],y=g[1],b=Tl((0,t.useMemo)((function(){return{element:v,value:s}}),[s,v]),oy,a),E=ii(n,y),T=p===s,w=u((function(){f&&f(s),h("SELECT_WITH_CLICK",{value:s,isControlled:m.current})}),"handleClick");return(0,t.createElement)(sy.Provider,{value:{value:s,index:b}},(0,t.createElement)(i,Av({"aria-selected":T,role:"option"},c,{"data-reach-combobox-option":"",ref:E,id:String(yy(s)),"data-highlighted":T?"":void 0,tabIndex:-1,onClick:oi(l,w)}),o?Jr(o)?o({value:s,index:b}):o:(0,t.createElement)(py,null)))}));function py(){var e=(0,t.useContext)(sy).value,n=(0,t.useContext)(ay).data.value,r=(0,t.useMemo)((function(){return Hv.findAll({searchWords:Ey(n||"").split(/\s+/),textToHighlight:e})}),[n,e]);return(0,t.createElement)(t.Fragment,null,r.length?r.map((function(n,r){var i=e.slice(n.start,n.end);return(0,t.createElement)("span",{key:r,"data-reach-combobox-option-text":"","data-user-value":!!n.highlight||void 0,"data-suggested-value":!n.highlight||void 0},i)})):e)}function hy(e,t){qr((function(){var n;e!==ey&&"ESCAPE"!==e&&"SELECT_WITH_CLICK"!==e&&"OPEN_WITH_BUTTON"!==e||null==(n=t.current)||n.focus()}),[t,e])}function my(){var e=(0,t.useContext)(ay),n=e.data.navigationValue,r=e.onSelect,i=e.state,o=e.transition,a=e.autocompletePropRef,s=e.persistSelectionRef,l=e.isControlledRef,c=Cl(oy);return u((function(e){var t=c.findIndex((function(e){return e.value===n}));function d(){return t===c.length-1?a.current?null:p():c[(t+1)%c.length]}function f(){return 0===t?a.current?null:h():-1===t?h():c[(t-1+c.length)%c.length]}function p(){return c[0]}function h(){return c[c.length-1]}switch(u(d,"getNextOption"),u(f,"getPreviousOption"),u(p,"getFirstOption"),u(h,"getLastOption"),e.key){case"ArrowDown":if(e.preventDefault(),!c||!c.length)return;if(i===Yv)o(ey,{persistSelection:s.current});else{var m=d();o(ey,{value:m?m.value:null})}break;case"ArrowUp":if(e.preventDefault(),!c||0===c.length)return;if(i===Yv)o(ey);else{var g=f();o(ey,{value:g?g.value:null})}break;case"Home":case"PageUp":if(e.preventDefault(),!c||0===c.length)return;i===Yv?o(ey):o(ey,{value:p().value});break;case"End":case"PageDown":if(e.preventDefault(),!c||0===c.length)return;i===Yv?o(ey):o(ey,{value:h().value});break;case"Escape":i!==Yv&&o("ESCAPE");break;case"Enter":i===Xv&&null!==n&&(e.preventDefault(),r&&r(n),o("SELECT_WITH_KEYBOARD",{isControlled:l.current}))}}),"handleKeyDown")}function gy(){var e=(0,t.useContext)(ay),n=e.state,r=e.transition,i=e.popoverRef,o=e.inputRef,a=e.buttonRef;return u((function(e){var t=i.current,s=o.current,l=a.current,u=e.relatedTarget;u!==s&&u!==l&&t&&(t.contains(u)?n!==Zv&&r("INTERACT"):r("BLUR"))}),"handleBlur")}function vy(e,n,r){var i=(0,t.useState)(e.initial),o=i[0],a=i[1],s=(0,t.useReducer)(n,r),l=s[0],c=s[1];return[o,l,u((function(t,n){void 0===n&&(n={});var r=e.states[o],i=r&&r.on[t];if(i)return c(Av({type:t,state:o,nextState:o},n)),void a(i)}),"transition")]}function yy(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}function by(e){return e.toLowerCase()}function Ey(e){return String(e).replace(/([.*+?=^!:${}()|[\]/\\])/g,"\\$1")}u(py,"ComboboxOptionText"),u(hy,"useFocusManagement"),u(my,"useKeyDown"),u(gy,"useBlur"),u(vy,"useReducerMachine"),u(yy,"makeHash"),u(by,"getDataState"),u(Ey,"escapeRegexp");var Ty=Object.defineProperty,wy=u((e,t)=>Ty(e,"name",{value:t,configurable:!0}),"__name$n");function Cy(e,t){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n&&window.clearTimeout(n),n=window.setTimeout(()=>{n=null,t(...i)},e)}}u(Cy,"debounce"),wy(Cy,"debounce");var xy=Object.defineProperty,Sy=u((e,t)=>xy(e,"name",{value:t,configurable:!0}),"__name$m");function Ny(){const{explorerNavStack:e,push:n}=nv({nonNull:!0,caller:Ny}),r=(0,t.useRef)(null),o=(0,t.useRef)(null),a=ky(),[s,l]=(0,t.useState)(""),[c,d]=(0,t.useState)(a(s)),f=(0,t.useMemo)(()=>Cy(200,e=>{d(a(e))}),[a]);(0,t.useEffect)(()=>{f(s)},[f,s]),(0,t.useEffect)(()=>{function e(e){e.metaKey&&75===e.keyCode&&r.current&&r.current.focus()}return u(e,"handleKeyDown"),Sy(e,"handleKeyDown"),window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]);const p=e[e.length-1];return 1===e.length||(0,i.isObjectType)(p.def)||(0,i.isInterfaceType)(p.def)||(0,i.isInputObjectType)(p.def)?ne(ly,{"aria-label":`Search ${p.name}...`,onSelect:e=>{const t=e;n("field"in t?{name:t.field.name,def:t.field}:{name:t.type.name,def:t.type})},children:[ne("div",{className:"graphiql-doc-explorer-search-input",onClick:()=>{r.current&&r.current.focus()},children:[te(wr,{}),te(uy,{autocomplete:!1,onChange:e=>{l(e.target.value)},onKeyDown:e=>{if(!e.isDefaultPrevented()){const e=o.current;if(!e)return;window.requestAnimationFrame(()=>{const t=e.querySelector("[aria-selected=true]");if(!(t instanceof HTMLElement))return;const n=t.offsetTop-e.scrollTop,r=e.scrollTop+e.clientHeight-(t.offsetTop+t.clientHeight);r<0&&(e.scrollTop-=r),n<0&&(e.scrollTop+=n)})}e.stopPropagation()},placeholder:"⌘ K",ref:r,value:s})]}),te(cy,{portal:!1,ref:o,children:ne(dy,{children:[c.within.map((e,t)=>te(fy,{index:t,value:e,children:te(Iy,{field:e.field,argument:e.argument})},"within-"+t)),c.within.length>0&&c.types.length+c.fields.length>0?te("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,c.types.map((e,t)=>te(fy,{index:c.within.length+t,value:e,children:te(Oy,{type:e.type})},"type-"+t)),c.fields.map((e,t)=>ne(fy,{index:c.within.length+c.types.length+t,value:e,children:[te(Oy,{type:e.type}),".",te(Iy,{field:e.field,argument:e.argument})]},"field-"+t)),c.within.length+c.types.length+c.fields.length===0?te("div",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):null]})})]}):null}function ky(e){const{explorerNavStack:n}=nv({nonNull:!0,caller:e||ky}),{schema:r}=Kg({nonNull:!0,caller:e||ky}),o=n[n.length-1];return(0,t.useCallback)(e=>{const t={within:[],types:[],fields:[]};if(!r)return t;const n=o.def,a=r.getTypeMap();let s=Object.keys(a);n&&(s=s.filter(e=>e!==n.name),s.unshift(n.name));for(const r of s){if(t.within.length+t.types.length+t.fields.length>=100)break;const o=a[r];if(n!==o&&_y(r,e)&&t.types.push({type:o}),!(0,i.isObjectType)(o)&&!(0,i.isInterfaceType)(o)&&!(0,i.isInputObjectType)(o))continue;const s=o.getFields();for(const r in s){const i=s[r];let a;if(!_y(r,e)){if(!("args"in i))continue;if(a=i.args.filter(t=>_y(t.name,e)),0===a.length)continue}t[n===o?"within":"fields"].push(...a?a.map(e=>({type:o,field:i,argument:e})):[{type:o,field:i}])}}return t},[o.def,r])}function _y(e,t){try{const n=t.replace(/[^_0-9A-Za-z]/g,e=>"\\"+e);return-1!==e.search(new RegExp(n,"i"))}catch(n){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}}function Oy(e){return te("span",{className:"graphiql-doc-explorer-search-type",children:e.type.name})}function Iy(e){return ne(re,{children:[te("span",{className:"graphiql-doc-explorer-search-field",children:e.field.name}),e.argument?ne(re,{children:["(",te("span",{className:"graphiql-doc-explorer-search-argument",children:e.argument.name}),":"," ",ov(e.argument.type,e=>te(Oy,{type:e})),")"]}):null]})}u(Ny,"Search"),Sy(Ny,"Search"),u(ky,"useSearchResults"),Sy(ky,"useSearchResults"),u(_y,"isMatch"),Sy(_y,"isMatch"),u(Oy,"Type"),Sy(Oy,"Type"),u(Iy,"Field$1"),Sy(Iy,"Field");var Ly=Object.defineProperty,Ay=u((e,t)=>Ly(e,"name",{value:t,configurable:!0}),"__name$l");function Dy(e){const{push:t}=nv({nonNull:!0});return te("a",{className:"graphiql-doc-explorer-field-name",onClick:n=>{n.preventDefault(),t({name:e.field.name,def:e.field})},href:"#",children:e.field.name})}u(Dy,"FieldLink"),Ay(Dy,"FieldLink");var My=Object.defineProperty,Ry=u((e,t)=>My(e,"name",{value:t,configurable:!0}),"__name$k");function Fy(e){return(0,i.isNamedType)(e.type)?ne(re,{children:[e.type.description?te(bm,{type:"description",children:e.type.description}):null,te(Py,{type:e.type}),te(jy,{type:e.type}),te(Uy,{type:e.type}),te($y,{type:e.type})]}):null}function Py(e){let{type:t}=e;return(0,i.isObjectType)(t)&&t.getInterfaces().length>0?te(Ev,{title:"Implements",children:t.getInterfaces().map(e=>te("div",{children:te(lv,{type:e})},e.name))}):null}function jy(e){let{type:n}=e;const[r,o]=(0,t.useState)(!1);if(!(0,i.isObjectType)(n)&&!(0,i.isInterfaceType)(n)&&!(0,i.isInputObjectType)(n))return null;const a=n.getFields(),s=[],l=[];for(const e of Object.keys(a).map(e=>a[e]))e.deprecationReason?l.push(e):s.push(e);return ne(re,{children:[s.length>0?te(Ev,{title:"Fields",children:s.map(e=>te(Vy,{field:e},e.name))}):null,l.length>0?r||0===s.length?te(Ev,{title:"Deprecated Fields",children:l.map(e=>te(Vy,{field:e},e.name))}):te(Ur,{type:"button",onClick:()=>{o(!0)},children:"Show Deprecated Fields"}):null]})}function Vy(e){let{field:t}=e;const n="args"in t?t.args.filter(e=>!e.deprecationReason):[];return ne("div",{className:"graphiql-doc-explorer-item",children:[ne("div",{children:[te(Dy,{field:t}),n.length>0?ne(re,{children:["(",te("span",{children:n.map(e=>1===n.length?te(dv,{arg:e,inline:!0},e.name):te("div",{className:"graphiql-doc-explorer-argument-multiple",children:te(dv,{arg:e,inline:!0})},e.name))}),")"]}):null,": ",te(lv,{type:t.type}),te(qg,{field:t})]}),t.description?te(bm,{type:"description",onlyShowFirstChild:!0,children:t.description}):null,te(hv,{children:t.deprecationReason})]})}function Uy(e){let{type:n}=e;const[r,o]=(0,t.useState)(!1);if(!(0,i.isEnumType)(n))return null;const a=[],s=[];for(const e of n.getValues())e.deprecationReason?s.push(e):a.push(e);return ne(re,{children:[a.length>0?te(Ev,{title:"Enum Values",children:a.map(e=>te(By,{value:e},e.name))}):null,s.length>0?r||0===a.length?te(Ev,{title:"Deprecated Enum Values",children:s.map(e=>te(By,{value:e},e.name))}):te(Ur,{type:"button",onClick:()=>{o(!0)},children:"Show Deprecated Values"}):null]})}function By(e){let{value:t}=e;return ne("div",{className:"graphiql-doc-explorer-item",children:[te("div",{className:"graphiql-doc-explorer-enum-value",children:t.name}),t.description?te(bm,{type:"description",children:t.description}):null,t.deprecationReason?te(bm,{type:"deprecation",children:t.deprecationReason}):null]})}function $y(e){let{type:t}=e;const{schema:n}=Kg({nonNull:!0});return n&&(0,i.isAbstractType)(t)?te(Ev,{title:(0,i.isInterfaceType)(t)?"Implementations":"Possible Types",children:n.getPossibleTypes(t).map(e=>te("div",{children:te(lv,{type:e})},e.name))}):null}u(Fy,"TypeDocumentation"),Ry(Fy,"TypeDocumentation"),u(Py,"ImplementsInterfaces"),Ry(Py,"ImplementsInterfaces"),u(jy,"Fields"),Ry(jy,"Fields"),u(Vy,"Field"),Ry(Vy,"Field"),u(Uy,"EnumValues"),Ry(Uy,"EnumValues"),u(By,"EnumValue"),Ry(By,"EnumValue"),u($y,"PossibleTypes"),Ry($y,"PossibleTypes");var qy=Object.defineProperty,Hy=u((e,t)=>qy(e,"name",{value:t,configurable:!0}),"__name$j");function Gy(){const{fetchError:e,isFetching:t,schema:n,validationErrors:r}=Kg({nonNull:!0,caller:Gy}),{explorerNavStack:o,pop:a}=nv({nonNull:!0,caller:Gy}),s=o[o.length-1];let l,u=null;return e?u=te("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}):r.length>0?u=ne("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",r[0].message]}):t?u=te(Em,{}):n?1===o.length?u=te(Ov,{schema:n}):(0,i.isType)(s.def)?u=te(Fy,{type:s.def}):s.def&&(u=te(xv,{field:s.def})):u=te("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"}),o.length>1&&(l=o[o.length-2].name),ne("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[ne("div",{className:"graphiql-doc-explorer-header",children:[ne("div",{className:"graphiql-doc-explorer-header-content",children:[l&&ne("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:a,"aria-label":"Go back to "+l,children:[te(sr,{}),l]}),te("div",{className:"graphiql-doc-explorer-title",children:s.name})]}),te("div",{className:"graphiql-doc-explorer-search",children:te(Ny,{},s.name)})]}),te("div",{className:"graphiql-doc-explorer-content",children:u})]})}u(Gy,"DocExplorer"),Hy(Gy,"DocExplorer");var Wy=Object.defineProperty,zy=u((e,t)=>Wy(e,"name",{value:t,configurable:!0}),"__name$i");const Ky={title:"Documentation Explorer",icon:zy(u((function(){const e=Xy();return(null==e?void 0:e.visiblePlugin)===Ky?te(mr,{}):te(gr,{})}),"Icon"),"Icon"),content:Gy};e.G=Ky;const Qy={title:"History",icon:br,content:bg};e.J=Qy;const Yy=V("PluginContext");function Jy(e){const n=le(),r=nv(),i=mg(),o=(0,t.useMemo)(()=>{const t=[],n={};r&&(t.push(Ky),n[Ky.title]=!0),i&&(t.push(Qy),n[Qy.title]=!0);for(const r of e.plugins||[]){if("string"!=typeof r.title||!r.title)throw new Error("All GraphiQL plugins must have a unique title");if(n[r.title])throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${r.title}'`);t.push(r),n[r.title]=!0}return t},[r,i,e.plugins]),[a,s]=(0,t.useState)(()=>{const t=null==n?void 0:n.get(Zy),r=o.find(e=>e.title===t);return r||(t&&(null==n||n.set(Zy,"")),e.visiblePlugin&&o.find(t=>("string"==typeof e.visiblePlugin?t.title:t)===e.visiblePlugin)||null)}),{onTogglePluginVisibility:l}=e,u=(0,t.useCallback)(e=>{const t=e&&o.find(t=>("string"==typeof e?t.title:t)===e)||null;s(e=>t===e?e:(null==l||l(t),t))},[l,o]);(0,t.useEffect)(()=>{e.visiblePlugin&&u(e.visiblePlugin)},[o,e.visiblePlugin,u]);const c=(0,t.useMemo)(()=>({plugins:o,setVisiblePlugin:u,visiblePlugin:a}),[o,u,a]);return te(Yy.Provider,{value:c,children:e.children})}e.P=Yy,u(Jy,"PluginContextProvider"),zy(Jy,"PluginContextProvider");const Xy=U(Yy);e.K=Xy;const Zy="visiblePlugin";var eb=Object.defineProperty,tb=u((e,t)=>eb(e,"name",{value:t,configurable:!0}),"__name$h");function nb(e,t,n,r,o,a){function s(e){if(!(n&&r&&o&&e.currentTarget instanceof HTMLElement))return;const t=e.currentTarget.innerText,i=n.getType(t);i&&(o.setVisiblePlugin(Ky),r.push({name:i.name,def:i}),null==a||a(i))}Mg([],{useCommonAddons:!1}).then(e=>{let n,r,o,a,l,u,c,d,f;e.on(t,"select",(e,t)=>{if(!n){const e=t.parentNode;n=document.createElement("div"),n.className="CodeMirror-hint-information",e.appendChild(n);const i=document.createElement("header");i.className="CodeMirror-hint-information-header",n.appendChild(i),r=document.createElement("span"),r.className="CodeMirror-hint-information-field-name",i.appendChild(r),o=document.createElement("span"),o.className="CodeMirror-hint-information-type-name-pill",i.appendChild(o),a=document.createElement("span"),o.appendChild(a),l=document.createElement("a"),l.className="CodeMirror-hint-information-type-name",l.href="javascript:void 0",l.addEventListener("click",s),o.appendChild(l),u=document.createElement("span"),o.appendChild(u),c=document.createElement("div"),c.className="CodeMirror-hint-information-description",n.appendChild(c),d=document.createElement("div"),d.className="CodeMirror-hint-information-deprecation",n.appendChild(d);const p=document.createElement("span");p.className="CodeMirror-hint-information-deprecation-label",p.innerText="Deprecated",d.appendChild(p),f=document.createElement("div"),f.className="CodeMirror-hint-information-deprecation-reason",d.appendChild(f);const h=parseInt(window.getComputedStyle(n).paddingBottom.replace(/px$/,""),10)||0,m=tb(()=>{n&&(n.style.paddingTop=e.scrollTop+h+"px")},"handleScroll");let g;e.addEventListener("scroll",m),e.addEventListener("DOMNodeRemoved",g=tb(t=>{t.target===e&&(e.removeEventListener("scroll",m),e.removeEventListener("DOMNodeRemoved",g),n&&n.removeEventListener("click",s),n=null,r=null,o=null,a=null,l=null,u=null,c=null,d=null,f=null,g=null)},"onRemoveFn"))}if(r&&(r.innerText=e.text),o&&a&&l&&u)if(e.type){o.style.display="inline";const t=tb(e=>{(0,i.isNonNullType)(e)?(u.innerText="!"+u.innerText,t(e.ofType)):(0,i.isListType)(e)?(a.innerText+="[",u.innerText="]"+u.innerText,t(e.ofType)):l.innerText=e.name},"renderType");a.innerText="",u.innerText="",t(e.type)}else a.innerText="",l.innerText="",u.innerText="",o.style.display="none";c&&(e.description?(c.style.display="block",c.innerHTML=ym.render(e.description)):(c.style.display="none",c.innerHTML="")),d&&f&&(e.deprecationReason?(d.style.display="block",f.innerHTML=ym.render(e.deprecationReason)):(d.style.display="none",f.innerHTML=""))})}),u(s,"onClickHintInformation"),tb(s,"onClickHintInformation")}u(nb,"onHasCompletion"),tb(nb,"onHasCompletion");var rb=Object.defineProperty,ib=u((e,t)=>rb(e,"name",{value:t,configurable:!0}),"__name$g");function ob(e,n){(0,t.useEffect)(()=>{e&&"string"==typeof n&&n!==e.getValue()&&e.setValue(n)},[e,n])}function ab(e,n,r){(0,t.useEffect)(()=>{e&&e.setOption(n,r)},[e,n,r])}function sb(e,n,r,i,o){const{updateActiveTabValues:a}=iE({nonNull:!0,caller:o}),s=le();(0,t.useEffect)(()=>{if(!e)return;const t=Cy(500,e=>{s&&null!==r&&s.set(r,e)}),o=Cy(100,e=>{a({[i]:e})}),l=ib((e,r)=>{if(!r)return;const i=e.getValue();t(i),o(i),null==n||n(i)},"handleChange");return e.on("change",l),()=>e.off("change",l)},[n,e,s,r,i,a])}function lb(e,n,r){const{schema:i}=Kg({nonNull:!0,caller:r}),o=nv(),a=Xy();(0,t.useEffect)(()=>{if(!e)return;const t=ib((e,t)=>{nb(0,t,i,o,a,e=>{null==n||n({kind:"Type",type:e,schema:i||void 0})})},"handleCompletion");return e.on("hasCompletion",t),()=>e.off("hasCompletion",t)},[n,e,o,a,i])}function ub(e,n,r){(0,t.useEffect)(()=>{if(e){for(const t of n)e.removeKeyMap(t);if(r){const t={};for(const e of n)t[e]=()=>r();e.addKeyMap(t)}}},[e,n,r])}function cb(){let{caller:e,onCopyQuery:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{queryEditor:r}=iE({nonNull:!0,caller:e||cb});return(0,t.useCallback)(()=>{if(!r)return;const e=r.getValue();Vg(e),null==n||n(e)},[r,n])}function db(){let{caller:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{queryEditor:n}=iE({nonNull:!0,caller:e||db}),{schema:r}=Kg({nonNull:!0,caller:db});return(0,t.useCallback)(()=>{const e=null==n?void 0:n.documentAST,t=null==n?void 0:n.getValue();e&&t&&n.setValue((0,i.print)(I(e,r)))},[n,r])}function fb(){let{caller:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{queryEditor:n,headerEditor:r,variableEditor:o}=iE({nonNull:!0,caller:e||fb});return(0,t.useCallback)(()=>{if(o){const e=o.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&o.setValue(t)}catch{}}if(r){const e=r.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&r.setValue(t)}catch{}}if(n){const e=n.getValue(),t=(0,i.print)((0,i.parse)(e));t!==e&&n.setValue(t)}},[n,o,r])}function pb(){let{getDefaultFieldNames:e,caller:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{schema:r}=Kg({nonNull:!0,caller:n||pb}),{queryEditor:i}=iE({nonNull:!0,caller:n||pb});return(0,t.useCallback)(()=>{if(!i)return;const t=i.getValue(),{insertions:n,result:o}=w(r,t,e);return n&&n.length>0&&i.operation(()=>{const e=i.getCursor(),t=i.indexFromPos(e);i.setValue(o||"");let r=0;const a=n.map(e=>{let{index:t,string:n}=e;return i.markText(i.posFromIndex(t+r),i.posFromIndex(t+(r+=n.length)),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(()=>a.forEach(e=>e.clear()),7e3);let s=t;n.forEach(e=>{let{index:n,string:r}=e;n<t&&(s+=r.length)}),i.setCursor(i.posFromIndex(s))}),o},[e,i,r])}u(ob,"useSynchronizeValue"),ib(ob,"useSynchronizeValue"),u(ab,"useSynchronizeOption"),ib(ab,"useSynchronizeOption"),u(sb,"useChangeHandler"),ib(sb,"useChangeHandler"),u(lb,"useCompletion"),ib(lb,"useCompletion"),u(ub,"useKeyMap"),ib(ub,"useKeyMap"),u(cb,"useCopyQuery"),ib(cb,"useCopyQuery"),u(db,"useMergeQuery"),ib(db,"useMergeQuery"),u(fb,"usePrettifyEditors"),ib(fb,"usePrettifyEditors"),u(pb,"useAutoCompleteLeafs"),ib(pb,"useAutoCompleteLeafs");var hb=Object.defineProperty,mb=u((e,t)=>hb(e,"name",{value:t,configurable:!0}),"__name$f");function gb(){let{editorTheme:e=Ig,keyMap:r=Lg,onEdit:i,readOnly:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;const{initialHeaders:s,headerEditor:l,setHeaderEditor:u,shouldPersistHeaders:c}=iE({nonNull:!0,caller:a||gb}),d=Ng(),f=db({caller:a||gb}),p=fb({caller:a||gb}),h=(0,t.useRef)(null);return(0,t.useEffect)(()=>{let t=!0;return Mg([Promise.resolve().then(n.t.bind(null,49,7)).then((function(e){return e.j}))]).then(n=>{if(!t)return;const r=h.current;if(!r)return;const i=n(r,{value:s,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!o&&"nocursor",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Dg});i.addKeyMap({"Cmd-Space"(){i.showHint({completeSingle:!1,container:r})},"Ctrl-Space"(){i.showHint({completeSingle:!1,container:r})},"Alt-Space"(){i.showHint({completeSingle:!1,container:r})},"Shift-Space"(){i.showHint({completeSingle:!1,container:r})}}),i.on("keyup",(e,t)=>{const n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")}),u(i)}),()=>{t=!1}},[e,s,o,u]),ab(l,"keyMap",r),sb(l,i,c?vb:null,"headers",gb),ub(l,["Cmd-Enter","Ctrl-Enter"],null==d?void 0:d.run),ub(l,["Shift-Ctrl-P"],p),ub(l,["Shift-Ctrl-M"],f),h}u(gb,"useHeaderEditor"),mb(gb,"useHeaderEditor");const vb="headers";var yb=Object.defineProperty,bb=u((e,t)=>yb(e,"name",{value:t,configurable:!0}),"__name$e");const Eb=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029"," "," "]),Tb=new RegExp("["+Eb.join("")+"]","g");function wb(e){return e.replace(Tb," ")}u(wb,"normalizeWhitespace"),bb(wb,"normalizeWhitespace");var Cb=Object.defineProperty,xb=u((e,t)=>Cb(e,"name",{value:t,configurable:!0}),"__name$d");function Sb(){let{editorTheme:e=Ig,keyMap:r=Lg,onClickReference:i,onCopyQuery:o,onEdit:a,readOnly:s=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;const{schema:c}=Kg({nonNull:!0,caller:l||Sb}),{externalFragments:d,initialQuery:f,queryEditor:p,setOperationName:h,setQueryEditor:m,validationRules:g,variableEditor:v,updateActiveTabValues:y}=iE({nonNull:!0,caller:l||Sb}),b=Ng(),E=le(),T=nv(),w=Xy(),C=cb({caller:l||Sb,onCopyQuery:o}),x=db({caller:l||Sb}),S=fb({caller:l||Sb}),N=(0,t.useRef)(null),k=(0,t.useRef)(),_=(0,t.useRef)(()=>{});(0,t.useEffect)(()=>{_.current=e=>{T&&w&&(w.setVisiblePlugin(Ky),e&&"Type"===e.kind?T.push({name:e.type.name,def:e.type}):"Field"===e.kind||"Argument"===e.kind&&e.field?T.push({name:e.field.name,def:e.field}):"EnumValue"===e.kind&&e.type&&T.push({name:e.type.name,def:e.type}),null==i||i(e))}},[T,i,w]),(0,t.useEffect)(()=>{let t=!0;return Mg([Promise.resolve().then(n.t.bind(null,50,7)).then((function(e){return e.c})),Promise.resolve().then(n.t.bind(null,19,7)).then((function(e){return e.s})),Promise.resolve().then(n.t.bind(null,51,7)),Promise.resolve().then(n.t.bind(null,52,7)),Promise.resolve().then(n.t.bind(null,53,7)),Promise.resolve().then(n.t.bind(null,54,7)),Promise.resolve().then(n.t.bind(null,55,7))]).then(n=>{if(!t)return;k.current=n;const r=N.current;if(!r)return;const i=n(r,{value:f,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!s&&"nocursor",lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:r,externalFragments:void 0},info:{schema:void 0,renderDescription:e=>ym.render(e),onClick:e=>{_.current(e)}},jump:{schema:void 0,onClick:e=>{_.current(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{...Dg,"Cmd-S"(){},"Ctrl-S"(){}}});i.addKeyMap({"Cmd-Space"(){i.showHint({completeSingle:!0,container:r})},"Ctrl-Space"(){i.showHint({completeSingle:!0,container:r})},"Alt-Space"(){i.showHint({completeSingle:!0,container:r})},"Shift-Space"(){i.showHint({completeSingle:!0,container:r})},"Shift-Alt-Space"(){i.showHint({completeSingle:!0,container:r})}}),i.on("keyup",(e,t)=>{Ob.test(t.key)&&e.execCommand("autocomplete")}),i.on("beforeChange",(e,t)=>{var n;if("paste"===t.origin){const e=t.text.map(wb);null==(n=t.update)||n.call(t,t.from,t.to,e)}}),i.documentAST=null,i.operationName=null,i.operations=null,i.variableToType=null,m(i)}),()=>{t=!1}},[e,f,s,m]),ab(p,"keyMap",r),(0,t.useEffect)(()=>{if(!p)return;function e(e){var t,n,r,i,o;const a=ln(c,e.getValue()),s=L(null!=(t=e.operations)?t:void 0,null!=(n=e.operationName)?n:void 0,null==a?void 0:a.operations);return e.documentAST=null!=(r=null==a?void 0:a.documentAST)?r:null,e.operationName=null!=s?s:null,e.operations=null!=(i=null==a?void 0:a.operations)?i:null,v&&(v.state.lint.linterOptions.variableToType=null==a?void 0:a.variableToType,v.options.lint.variableToType=null==a?void 0:a.variableToType,v.options.hintOptions.variableToType=null==a?void 0:a.variableToType,null==(o=k.current)||o.signal(v,"change",v)),a?{...a,operationName:s}:null}u(e,"getAndUpdateOperationFacts"),xb(e,"getAndUpdateOperationFacts");const t=Cy(100,t=>{var n;const r=t.getValue();null==E||E.set(Ib,r);const i=t.operationName,o=e(t);void 0!==(null==o?void 0:o.operationName)&&(null==E||E.set(Lb,o.operationName)),null==a||a(r,null==o?void 0:o.documentAST),(null==o?void 0:o.operationName)&&i!==o.operationName&&h(o.operationName),y({query:r,operationName:null!=(n=null==o?void 0:o.operationName)?n:null})});return e(p),p.on("change",t),()=>p.off("change",t)},[a,p,c,h,E,v,y]),Nb(p,null!=c?c:null,k),kb(p,null!=g?g:null,k),_b(p,d,k),lb(p,i||null,Sb);const O=null==b?void 0:b.run,I=(0,t.useCallback)(()=>{var e;if(!(O&&p&&p.operations&&p.hasFocus()))return void(null==O||O());const t=p.indexFromPos(p.getCursor());let n;for(const r of p.operations)r.loc&&r.loc.start<=t&&r.loc.end>=t&&(n=null==(e=r.name)?void 0:e.value);n&&n!==p.operationName&&h(n),O()},[p,O,h]);return ub(p,["Cmd-Enter","Ctrl-Enter"],I),ub(p,["Shift-Ctrl-C"],C),ub(p,["Shift-Ctrl-P","Shift-Ctrl-F"],S),ub(p,["Shift-Ctrl-M"],x),N}function Nb(e,n,r){(0,t.useEffect)(()=>{if(!e)return;const t=e.options.lint.schema!==n;e.state.lint.linterOptions.schema=n,e.options.lint.schema=n,e.options.hintOptions.schema=n,e.options.info.schema=n,e.options.jump.schema=n,t&&r.current&&r.current.signal(e,"change",e)},[e,n,r])}function kb(e,n,r){(0,t.useEffect)(()=>{if(!e)return;const t=e.options.lint.validationRules!==n;e.state.lint.linterOptions.validationRules=n,e.options.lint.validationRules=n,t&&r.current&&r.current.signal(e,"change",e)},[e,n,r])}function _b(e,n,r){const i=(0,t.useMemo)(()=>[...n.values()],[n]);(0,t.useEffect)(()=>{if(!e)return;const t=e.options.lint.externalFragments!==i;e.state.lint.linterOptions.externalFragments=i,e.options.lint.externalFragments=i,e.options.hintOptions.externalFragments=i,t&&r.current&&r.current.signal(e,"change",e)},[e,i,r])}u(Sb,"useQueryEditor"),xb(Sb,"useQueryEditor"),u(Nb,"useSynchronizeSchema"),xb(Nb,"useSynchronizeSchema"),u(kb,"useSynchronizeValidationRules"),xb(kb,"useSynchronizeValidationRules"),u(_b,"useSynchronizeExternalFragments"),xb(_b,"useSynchronizeExternalFragments");const Ob=/^[a-zA-Z0-9_@(]$/,Ib="query",Lb="operationName";var Ab=Object.defineProperty,Db=u((e,t)=>Ab(e,"name",{value:t,configurable:!0}),"__name$c");function Mb(e){let{defaultQuery:t,headers:n,query:r,variables:i,storage:o}=e;const a=null==o?void 0:o.get(Qb);try{if(!a)throw new Error("Storage for tabs is empty");const e=JSON.parse(a);if(Rb(e)){const t=Wb({query:r,variables:i,headers:n});let o=-1;for(let n=0;n<e.tabs.length;n++){const r=e.tabs[n];r.hash=Wb({query:r.query,variables:r.variables,headers:r.headers}),r.hash===t&&(o=n)}if(o>=0)e.activeTabIndex=o;else{const o=r?zb(r):null;e.tabs.push({id:Gb(),hash:t,title:o||Kb,query:r,variables:i,headers:n,operationName:o,response:null}),e.activeTabIndex=e.tabs.length-1}return e}throw new Error("Storage for tabs is invalid")}catch(e){return{activeTabIndex:0,tabs:[qb({query:null!=r?r:t,variables:i,headers:n})]}}}function Rb(e){return e&&"object"==typeof e&&!Array.isArray(e)&&Pb(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(Fb)}function Fb(e){return e&&"object"==typeof e&&!Array.isArray(e)&&jb(e,"id")&&jb(e,"title")&&Vb(e,"query")&&Vb(e,"variables")&&Vb(e,"headers")&&Vb(e,"operationName")&&Vb(e,"response")}function Pb(e,t){return t in e&&"number"==typeof e[t]}function jb(e,t){return t in e&&"string"==typeof e[t]}function Vb(e,t){return t in e&&("string"==typeof e[t]||null===e[t])}function Ub(e){let{queryEditor:n,variableEditor:r,headerEditor:i,responseEditor:o}=e;return(0,t.useCallback)(e=>{var t,a,s,l,u;const c=null!=(t=null==n?void 0:n.getValue())?t:null,d=null!=(a=null==r?void 0:r.getValue())?a:null,f=null!=(s=null==i?void 0:i.getValue())?s:null,p=null!=(l=null==n?void 0:n.operationName)?l:null;return Hb(e,{query:c,variables:d,headers:f,response:null!=(u=null==o?void 0:o.getValue())?u:null,operationName:p})},[n,r,i,o])}function Bb(e){let{storage:n,shouldPersistHeaders:r}=e;const i=(0,t.useMemo)(()=>Cy(500,e=>{null==n||n.set(Qb,e)}),[n]);return(0,t.useCallback)(e=>{i(JSON.stringify(e,(e,t)=>"hash"===e||"response"===e||!r&&"headers"===e?null:t))},[r,i])}function $b(e){let{queryEditor:n,variableEditor:r,headerEditor:i,responseEditor:o}=e;return(0,t.useCallback)(e=>{let{query:t,variables:a,headers:s,response:l}=e;null==n||n.setValue(null!=t?t:""),null==r||r.setValue(null!=a?a:""),null==i||i.setValue(null!=s?s:""),null==o||o.setValue(null!=l?l:"")},[i,n,o,r])}function qb(){let{query:e=null,variables:t=null,headers:n=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{id:Gb(),hash:Wb({query:e,variables:t,headers:n}),title:Kb,query:e,variables:t,headers:n,operationName:null,response:null}}function Hb(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;const i={...n,...t};return{...i,hash:Wb(i),title:i.operationName||(i.query?zb(i.query):void 0)||Kb}})}}function Gb(){const e=Db(()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1),"s4");return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function Wb(e){var t,n,r;return[null!=(t=e.query)?t:"",null!=(n=e.variables)?n:"",null!=(r=e.headers)?r:""].join("|")}function zb(e){var t;const n=/^(?!.*#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/.exec(e);return null!=(t=null==n?void 0:n[2])?t:null}u(Mb,"getDefaultTabState"),Db(Mb,"getDefaultTabState"),u(Rb,"isTabsState"),Db(Rb,"isTabsState"),u(Fb,"isTabState"),Db(Fb,"isTabState"),u(Pb,"hasNumberKey"),Db(Pb,"hasNumberKey"),u(jb,"hasStringKey"),Db(jb,"hasStringKey"),u(Vb,"hasStringOrNullKey"),Db(Vb,"hasStringOrNullKey"),u(Ub,"useSynchronizeActiveTabValues"),Db(Ub,"useSynchronizeActiveTabValues"),u(Bb,"useStoreTabs"),Db(Bb,"useStoreTabs"),u($b,"useSetEditorValues"),Db($b,"useSetEditorValues"),u(qb,"createTab"),Db(qb,"createTab"),u(Hb,"setPropertiesInActiveTab"),Db(Hb,"setPropertiesInActiveTab"),u(Gb,"guid"),Db(Gb,"guid"),u(Wb,"hashFromTabContents"),Db(Wb,"hashFromTabContents"),u(zb,"fuzzyExtractOperationName"),Db(zb,"fuzzyExtractOperationName");const Kb="<untitled>",Qb="tabState";var Yb=Object.defineProperty,Jb=u((e,t)=>Yb(e,"name",{value:t,configurable:!0}),"__name$b");function Xb(){let{editorTheme:e=Ig,keyMap:r=Lg,onClickReference:i,onEdit:o,readOnly:a=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;const{initialVariables:l,variableEditor:u,setVariableEditor:c}=iE({nonNull:!0,caller:s||Xb}),d=Ng(),f=db({caller:s||Xb}),p=fb({caller:s||Xb}),h=(0,t.useRef)(null),m=(0,t.useRef)();return(0,t.useEffect)(()=>{let t=!0;return Mg([Promise.resolve().then(n.t.bind(null,56,7)),Promise.resolve().then(n.t.bind(null,57,7)),Promise.resolve().then(n.t.bind(null,58,7))]).then(n=>{if(!t)return;m.current=n;const r=h.current;if(!r)return;const i=n(r,{value:l,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!a&&"nocursor",foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:r,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Dg});i.addKeyMap({"Cmd-Space"(){i.showHint({completeSingle:!1,container:r})},"Ctrl-Space"(){i.showHint({completeSingle:!1,container:r})},"Alt-Space"(){i.showHint({completeSingle:!1,container:r})},"Shift-Space"(){i.showHint({completeSingle:!1,container:r})}}),i.on("keyup",(e,t)=>{const n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")}),c(i)}),()=>{t=!1}},[e,l,a,c]),ab(u,"keyMap",r),sb(u,o,Zb,"variables",Xb),lb(u,i||null,Xb),ub(u,["Cmd-Enter","Ctrl-Enter"],null==d?void 0:d.run),ub(u,["Shift-Ctrl-P"],p),ub(u,["Shift-Ctrl-M"],f),h}u(Xb,"useVariableEditor"),Jb(Xb,"useVariableEditor");const Zb="variables";var eE=Object.defineProperty,tE=u((e,t)=>eE(e,"name",{value:t,configurable:!0}),"__name$a");const nE=V("EditorContext");function rE(e){const n=le(),[r,o]=(0,t.useState)(null),[a,s]=(0,t.useState)(null),[l,u]=(0,t.useState)(null),[c,d]=(0,t.useState)(null);ob(r,e.headers),ob(a,e.query),ob(l,e.response),ob(c,e.variables);const f=Bb({storage:n,shouldPersistHeaders:e.shouldPersistHeaders}),[p]=(0,t.useState)(()=>{var t,r,i,o,a,s,l,u;const c=null!=(r=null!=(t=e.query)?t:null==n?void 0:n.get(Ib))?r:null,d=null!=(o=null!=(i=e.variables)?i:null==n?void 0:n.get(Zb))?o:null,p=null!=(s=null!=(a=e.headers)?a:null==n?void 0:n.get(vb))?s:null,h=null!=(l=e.response)?l:"",m=Mb({query:c,variables:d,headers:p,defaultQuery:e.defaultQuery||oE,storage:n});return f(m),{query:null!=(u=null!=c?c:0===m.activeTabIndex?m.tabs[0].query:null)?u:"",variables:null!=d?d:"",headers:null!=p?p:"",response:h,tabState:m}}),[h,m]=(0,t.useState)(p.tabState),g=Ub({queryEditor:a,variableEditor:c,headerEditor:r,responseEditor:l}),v=$b({queryEditor:a,variableEditor:c,headerEditor:r,responseEditor:l}),{onTabChange:y}=e,b=(0,t.useCallback)(()=>{m(e=>{const t=g(e),n={tabs:[...t.tabs,qb()],activeTabIndex:t.tabs.length};return f(n),v(n.tabs[n.activeTabIndex]),null==y||y(n),n})},[y,v,f,g]),E=(0,t.useCallback)(e=>{m(t=>{const n={...g(t),activeTabIndex:e};return f(n),v(n.tabs[n.activeTabIndex]),null==y||y(n),n})},[y,v,f,g]),T=(0,t.useCallback)(e=>{m(t=>{const n={tabs:t.tabs.filter((t,n)=>e!==n),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return f(n),v(n.tabs[n.activeTabIndex]),null==y||y(n),n})},[y,v,f]),w=(0,t.useCallback)(e=>{m(t=>{const n=Hb(t,e);return f(n),null==y||y(n),n})},[y,f]),{onEditOperationName:C}=e,x=(0,t.useCallback)(e=>{a&&(a.operationName=e,w({operationName:e}),null==C||C(e))},[C,a,w]),S=(0,t.useMemo)(()=>{const t=new Map;if(Array.isArray(e.externalFragments))for(const n of e.externalFragments)t.set(n.name.value,n);else if("string"==typeof e.externalFragments)(0,i.visit)((0,i.parse)(e.externalFragments,{}),{FragmentDefinition(e){t.set(e.name.value,e)}});else if(e.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");return t},[e.externalFragments]),N=(0,t.useMemo)(()=>e.validationRules||[],[e.validationRules]),k=(0,t.useMemo)(()=>({...h,addTab:b,changeTab:E,closeTab:T,updateActiveTabValues:w,headerEditor:r,queryEditor:a,responseEditor:l,variableEditor:c,setHeaderEditor:o,setQueryEditor:s,setResponseEditor:u,setVariableEditor:d,setOperationName:x,initialQuery:p.query,initialVariables:p.variables,initialHeaders:p.headers,initialResponse:p.response,externalFragments:S,validationRules:N,shouldPersistHeaders:e.shouldPersistHeaders||!1}),[h,b,E,T,w,r,a,l,c,x,p,S,N,e.shouldPersistHeaders]);return te(nE.Provider,{value:k,children:e.children})}e.E=nE,u(rE,"EditorContextProvider"),tE(rE,"EditorContextProvider");const iE=U(nE);e.d=iE;const oE='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n#     {\n#       field(arg: "value") {\n#         subField\n#       }\n#     }\n#\n# Keyboard shortcuts:\n#\n#   Prettify query:  Shift-Ctrl-P (or press the prettify button)\n#\n#  Merge fragments:  Shift-Ctrl-M (or press the merge button)\n#\n#        Run Query:  Ctrl-Enter (or press the play button)\n#\n#    Auto Complete:  Ctrl-Space (or just start typing)\n#\n\n';var aE=Object.defineProperty,sE=u((e,t)=>aE(e,"name",{value:t,configurable:!0}),"__name$9");function lE(e){let{isHidden:n,...r}=e;const{headerEditor:i}=iE({nonNull:!0,caller:lE}),o=gb(r,lE);return(0,t.useEffect)(()=>{i&&!n&&i.refresh()},[i,n]),te("div",{className:"graphiql-editor"+(n?" hidden":""),ref:o})}u(lE,"HeaderEditor"),sE(lE,"HeaderEditor");var uE=Object.defineProperty,cE=u((e,t)=>uE(e,"name",{value:t,configurable:!0}),"__name$8");function dE(e){var n;const[r,i]=(0,t.useState)({width:null,height:null}),[o,a]=(0,t.useState)(null),s=(0,t.useRef)(null),l=null==(n=fE(e.token))?void 0:n.href;(0,t.useEffect)(()=>{if(s.current)return l?void fetch(l,{method:"HEAD"}).then(e=>{a(e.headers.get("Content-Type"))}).catch(()=>{a(null)}):(i({width:null,height:null}),void a(null))},[l]);const u=null!==r.width&&null!==r.height?ne("div",{children:[r.width,"x",r.height,null!==o?" "+o:null]}):null;return ne("div",{children:[te("img",{onLoad:()=>{var e,t,n,r;i({width:null!=(t=null==(e=s.current)?void 0:e.naturalWidth)?t:null,height:null!=(r=null==(n=s.current)?void 0:n.naturalHeight)?r:null})},ref:s,src:l}),u]})}function fE(e){if("string"!==e.type)return;const t=e.string.slice(1).slice(0,-1).trim();try{const e=window.location;return new URL(t,e.protocol+"//"+e.host)}catch(e){return}}function pE(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}u(dE,"ImagePreview"),cE(dE,"ImagePreview"),dE.shouldRender=cE(u((function(e){const t=fE(e);return!!t&&pE(t)}),"shouldRender"),"shouldRender"),u(fE,"tokenToURL"),cE(fE,"tokenToURL"),u(pE,"isImageURL"),cE(pE,"isImageURL");var hE=Object.defineProperty,mE=u((e,t)=>hE(e,"name",{value:t,configurable:!0}),"__name$7");function gE(e){const t=Sb(e,gE);return te("div",{className:"graphiql-editor",ref:t})}u(gE,"QueryEditor"),mE(gE,"QueryEditor");var vE=Object.defineProperty,yE=u((e,t)=>vE(e,"name",{value:t,configurable:!0}),"__name$6");function bE(){let{responseTooltip:e,editorTheme:r=Ig,keyMap:i=Lg}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;const{fetchError:s,validationErrors:l}=Kg({nonNull:!0,caller:a||bE}),{initialResponse:u,responseEditor:c,setResponseEditor:d}=iE({nonNull:!0,caller:a||bE}),f=(0,t.useRef)(null),p=(0,t.useRef)(e);return(0,t.useEffect)(()=>{p.current=e},[e]),(0,t.useEffect)(()=>{let e=!0;return Mg([Promise.resolve().then(n.t.bind(null,16,7)).then((function(e){return e.f})),Promise.resolve().then(n.t.bind(null,15,7)).then((function(e){return e.b})),Promise.resolve().then(n.t.bind(null,7,7)).then((function(e){return e.d})),Promise.resolve().then(n.t.bind(null,19,7)).then((function(e){return e.s})),Promise.resolve().then(n.t.bind(null,6,7)).then((function(e){return e.s})),Promise.resolve().then(n.t.bind(null,17,7)).then((function(e){return e.j})),Promise.resolve().then(n.t.bind(null,18,7)).then((function(e){return e.s})),Promise.resolve().then(n.t.bind(null,59,7)),Promise.resolve().then(n.t.bind(null,22,7))],{useCommonAddons:!1}).then(t=>{if(!e)return;const n=document.createElement("div");t.registerHelper("info","graphql-results",(e,t,r,i)=>{const a=[],s=p.current;return s&&a.push(te(s,{pos:i,token:e})),dE.shouldRender(e)&&a.push(te(dE,{token:e},"image-preview")),a.length?(o.default.render(a,n),n):(o.default.unmountComponentAtNode(n),null)});const i=f.current;if(!i)return;const a=t(i,{value:u,lineWrapping:!0,readOnly:!0,theme:r,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:Dg});d(a)}),()=>{e=!1}},[r,u,d]),ab(c,"keyMap",i),(0,t.useEffect)(()=>{s&&(null==c||c.setValue(s)),l.length>0&&(null==c||c.setValue(E(l)))},[c,s,l]),f}u(bE,"useResponseEditor"),yE(bE,"useResponseEditor");var EE=Object.defineProperty,TE=u((e,t)=>EE(e,"name",{value:t,configurable:!0}),"__name$5");function wE(e){const t=bE(e,wE);return te("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:t})}u(wE,"ResponseEditor"),TE(wE,"ResponseEditor");var CE=Object.defineProperty,xE=u((e,t)=>CE(e,"name",{value:t,configurable:!0}),"__name$4");function SE(e){let{isHidden:n,...r}=e;const{variableEditor:i}=iE({nonNull:!0,caller:SE}),o=Xb(r,SE);return(0,t.useEffect)(()=>{i&&!n&&i.refresh()},[i,n]),te("div",{className:"graphiql-editor"+(n?" hidden":""),ref:o})}u(SE,"VariableEditor"),xE(SE,"VariableEditor");var NE=Object.defineProperty,kE=u((e,t)=>NE(e,"name",{value:t,configurable:!0}),"__name$3");function _E(e){let{children:t,dangerouslyAssumeSchemaIsValid:n,defaultQuery:r,externalFragments:i,fetcher:o,getDefaultFieldNames:a,headers:s,inputValueDeprecation:l,introspectionQueryName:u,maxHistoryLength:c,onEditOperationName:d,onSchemaChange:f,onTabChange:p,onTogglePluginVisibility:h,operationName:m,plugins:g,query:v,response:y,schema:b,schemaDescription:E,shouldPersistHeaders:T,storage:w,validationRules:C,variables:x,visiblePlugin:S}=e;return te(se,{storage:w,children:te(hg,{maxHistoryLength:c,children:te(rE,{defaultQuery:r,externalFragments:i,headers:s,onEditOperationName:d,onTabChange:p,query:v,response:y,shouldPersistHeaders:T,validationRules:C,variables:x,children:te(zg,{dangerouslyAssumeSchemaIsValid:n,fetcher:o,inputValueDeprecation:l,introspectionQueryName:u,onSchemaChange:f,schema:b,schemaDescription:E,children:te(Sg,{getDefaultFieldNames:a,fetcher:o,operationName:m,children:te(tv,{children:te(Jy,{onTogglePluginVisibility:h,plugins:g,visiblePlugin:S,children:t})})})})})})})}u(_E,"GraphiQLProvider"),kE(_E,"GraphiQLProvider");var OE=Object.defineProperty,IE=u((e,t)=>OE(e,"name",{value:t,configurable:!0}),"__name$2");function LE(){const e=le(),[n,r]=(0,t.useState)(()=>{if(!e)return null;const t=e.get(AE);switch(t){case"light":return"light";case"dark":return"dark";default:return"string"==typeof t&&e.set(AE,""),null}});(0,t.useLayoutEffect)(()=>{"undefined"!=typeof window&&(document.body.classList.remove("graphiql-light"),document.body.classList.remove("graphiql-dark"),n&&document.body.classList.add("graphiql-"+n))},[n]);const i=(0,t.useCallback)(t=>{null==e||e.set(AE,t||""),r(t)},[e]);return(0,t.useMemo)(()=>({theme:n,setTheme:i}),[n,i])}u(LE,"useTheme"),IE(LE,"useTheme");const AE="theme";var DE=Object.defineProperty,ME=u((e,t)=>DE(e,"name",{value:t,configurable:!0}),"__name$1");function RE(e){let{defaultSizeRelation:n=FE,direction:r,initiallyHidden:i,onHiddenElementChange:o,sizeThresholdFirst:a=100,sizeThresholdSecond:s=100,storageKey:l}=e;const c=le(),d=(0,t.useMemo)(()=>Cy(500,e=>{c&&l&&c.set(l,e)}),[c,l]),[f,p]=(0,t.useState)(()=>{const e=c&&l?c.get(l):null;return e===PE||"first"===i?"first":e===jE||"second"===i?"second":null}),h=(0,t.useCallback)(e=>{e!==f&&(p(e),null==o||o(e))},[f,o]),m=(0,t.useRef)(null),g=(0,t.useRef)(null),v=(0,t.useRef)(null),y=(0,t.useRef)(""+n);(0,t.useLayoutEffect)(()=>{const e=c&&l&&c.get(l)||y.current,t="horizontal"===r?"row":"column";m.current&&(m.current.style.display="flex",m.current.style.flexDirection=t,m.current.style.flex=e===PE||e===jE?y.current:e),v.current&&(v.current.style.display="flex",v.current.style.flexDirection=t,v.current.style.flex="1"),g.current&&(g.current.style.display="flex",g.current.style.flexDirection=t)},[r,c,l]);const b=(0,t.useCallback)(e=>{const t="first"===e?m.current:v.current;if(t&&(t.style.left="-1000px",t.style.position="absolute",t.style.opacity="0",t.style.height="500px",t.style.width="500px",m.current)){const e=parseFloat(m.current.style.flex);(!Number.isFinite(e)||e<1)&&(m.current.style.flex="1"),m.current.style.flex}},[]),E=(0,t.useCallback)(e=>{const t="first"===e?m.current:v.current;if(t&&(t.style.width="",t.style.height="",t.style.opacity="",t.style.position="",t.style.left="",m.current&&c&&l)){const e=null==c?void 0:c.get(l);e!==PE&&e!==jE&&(m.current.style.flex=e||y.current)}},[c,l]);return(0,t.useLayoutEffect)(()=>{"first"===f?b("first"):E("first"),"second"===f?b("second"):E("second")},[f,b,E]),(0,t.useEffect)(()=>{if(!g.current||!m.current||!v.current)return;const e=g.current,t=m.current,n=t.parentElement,i="horizontal"===r?"clientX":"clientY",o="horizontal"===r?"left":"top",l="horizontal"===r?"right":"bottom",c="horizontal"===r?"clientWidth":"clientHeight";function f(r){r.preventDefault();const f=r[i]-e.getBoundingClientRect()[o];function p(r){if(0===r.buttons)return m();const u=r[i]-n.getBoundingClientRect()[o]-f,p=n.getBoundingClientRect()[l]-r[i]+f-e[c];if(u<a)h("first"),d(PE);else if(p<s)h("second"),d(jE);else{h(null);const e=""+u/p;t.style.flex=e,d(e)}}function m(){document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",m)}u(p,"handleMouseMove"),ME(p,"handleMouseMove"),u(m,"handleMouseUp"),ME(m,"handleMouseUp"),document.addEventListener("mousemove",p),document.addEventListener("mouseup",m)}function p(){m.current&&(m.current.style.flex=y.current),d(y.current),h(null)}return u(f,"handleMouseDown"),ME(f,"handleMouseDown"),e.addEventListener("mousedown",f),u(p,"reset"),ME(p,"reset"),e.addEventListener("dblclick",p),()=>{e.removeEventListener("mousedown",f),e.removeEventListener("dblclick",p)}},[r,h,a,s,d]),(0,t.useMemo)(()=>({dragBarRef:g,hiddenElement:f,firstRef:m,setHiddenElement:p,secondRef:v}),[f,p])}u(RE,"useDragResize"),ME(RE,"useDragResize");const FE=1,PE="hide-first",jE="hide-second",VE=(0,t.forwardRef)((e,n)=>{let{label:r,...i}=e;const[o,a]=(0,t.useState)(null);return te(Jm,{label:r,children:te(Vr,{...i,ref:n,type:"button",className:jr("graphiql-toolbar-button",o?"error":"",i.className),onClick:e=>{var t;try{null==(t=i.onClick)||t.call(i,e),a(null)}catch(e){a(e instanceof Error?e:new Error("Toolbar button click failed: "+e))}},"aria-label":o?o.message:r,"aria-invalid":o?"true":i["aria-invalid"]})})});e.aD=VE,VE.displayName="ToolbarButton";var UE=Object.defineProperty,BE=u((e,t)=>UE(e,"name",{value:t,configurable:!0}),"__name");function $E(){const{queryEditor:e,setOperationName:t}=iE({nonNull:!0,caller:$E}),{isFetching:n,operationName:r,run:i,stop:o}=Ng({nonNull:!0,caller:$E}),a=(null==e?void 0:e.operations)||[],s=a.length>1&&"string"!=typeof r,l=(n?"Stop":"Execute")+" query (Ctrl-Enter)",u={type:"button",className:"graphiql-execute-button",children:te(n?Dr:Sr,{}),"aria-label":l};return s?ne(ld,{children:[te(Jm,{label:l,children:te(ld.Button,{...u})}),te(ld.List,{children:a.map((n,r)=>{const o=n.name?n.name.value:`<Unnamed ${n.operation}>`;return te(ld.Item,{onSelect:()=>{var r;const o=null==(r=n.name)?void 0:r.value;e&&o&&o!==e.operationName&&t(o),i()},children:o},`${o}-${r}`)})})]}):te(Jm,{label:l,children:te("button",{...u,onClick:()=>{n?o():i()}})})}u($E,"ExecuteButton"),BE($E,"ExecuteButton");const qE=(0,t.forwardRef)((e,t)=>{let{button:n,children:r,label:i,...o}=e;const a=`${i}${o.value?": "+o.value:""}`;return ne(cd.Input,{...o,ref:t,className:jr("graphiql-toolbar-listbox",o.className),"aria-label":a,children:[te(Jm,{label:a,children:te(cd.Button,{children:n})}),te(cd.Popover,{children:r})]})});qE.displayName="ToolbarListbox";const HE=xs(qE,{Option:cd.Option});e.aF=HE;const GE=(0,t.forwardRef)((e,t)=>{let{button:n,children:r,label:i,...o}=e;return ne(ld,{...o,ref:t,children:[te(Jm,{label:i,children:te(ld.Button,{className:jr("graphiql-un-styled graphiql-toolbar-menu",o.className),"aria-label":i,children:n})}),te(ld.List,{children:r})]})});GE.displayName="ToolbarMenu";const WE=xs(GE,{Item:ld.Item});e.aG=WE},o=[t,n(3),n(1),n(4)],void 0===(a="function"==typeof(i=s)?i.apply(t,o):i)||(e.exports=a)}).call(this,n(11))},function(e,t){e.exports=window.React},function(e,t){e.exports=window.ReactDOM},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(1),n(2)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.R=e.P=e.L=e.I=e.C=void 0,e.a=Ue,e.i=void 0,e.l=Be,e.o=Je,e.p=He,e.t=qe;var r,i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,E,T,w,C,x,S,N,k,_,O,I,L,A,D,M=Object.defineProperty,R=(e,t)=>M(e,"name",{value:t,configurable:!0});(function(e){function t(e){return"string"==typeof e}R(t,"is"),e.is=t})(r||(r={})),function(e){function t(e){return"string"==typeof e}R(t,"is"),e.is=t}(i||(i={})),function(e){function t(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,R(t,"is"),e.is=t}(o||(o={})),function(e){function t(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=0,e.MAX_VALUE=2147483647,R(t,"is"),e.is=t}(a||(a={})),function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=a.MAX_VALUE),t===Number.MAX_VALUE&&(t=a.MAX_VALUE),{line:e,character:t}}function n(e){var t=e;return je.objectLiteral(t)&&je.uinteger(t.line)&&je.uinteger(t.character)}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(s||(s={})),function(e){function t(e,t,n,r){if(je.uinteger(e)&&je.uinteger(t)&&je.uinteger(n)&&je.uinteger(r))return{start:s.create(e,t),end:s.create(n,r)};if(s.is(e)&&s.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(n,", ").concat(r,"]"))}function n(e){var t=e;return je.objectLiteral(t)&&s.is(t.start)&&s.is(t.end)}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(l||(l={})),function(e){function t(e,t){return{uri:e,range:t}}function n(e){var t=e;return je.objectLiteral(t)&&l.is(t.range)&&(je.string(t.uri)||je.undefined(t.uri))}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(u||(u={})),function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}function n(e){var t=e;return je.objectLiteral(t)&&l.is(t.targetRange)&&je.string(t.targetUri)&&l.is(t.targetSelectionRange)&&(l.is(t.originSelectionRange)||je.undefined(t.originSelectionRange))}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(c||(c={})),function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}function n(e){var t=e;return je.objectLiteral(t)&&je.numberRange(t.red,0,1)&&je.numberRange(t.green,0,1)&&je.numberRange(t.blue,0,1)&&je.numberRange(t.alpha,0,1)}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(d||(d={})),function(e){function t(e,t){return{range:e,color:t}}function n(e){var t=e;return je.objectLiteral(t)&&l.is(t.range)&&d.is(t.color)}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(f||(f={})),function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}function n(e){var t=e;return je.objectLiteral(t)&&je.string(t.label)&&(je.undefined(t.textEdit)||w.is(t))&&(je.undefined(t.additionalTextEdits)||je.typedArray(t.additionalTextEdits,w.is))}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(p||(p={})),(D=h||(h={})).Comment="comment",D.Imports="imports",D.Region="region",function(e){function t(e,t,n,r,i,o){var a={startLine:e,endLine:t};return je.defined(n)&&(a.startCharacter=n),je.defined(r)&&(a.endCharacter=r),je.defined(i)&&(a.kind=i),je.defined(o)&&(a.collapsedText=o),a}function n(e){var t=e;return je.objectLiteral(t)&&je.uinteger(t.startLine)&&je.uinteger(t.startLine)&&(je.undefined(t.startCharacter)||je.uinteger(t.startCharacter))&&(je.undefined(t.endCharacter)||je.uinteger(t.endCharacter))&&(je.undefined(t.kind)||je.string(t.kind))}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(m||(m={})),function(e){function t(e,t){return{location:e,message:t}}function n(e){var t=e;return je.defined(t)&&u.is(t.location)&&je.string(t.message)}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(g||(g={})),(A=v||(v={})).Error=1,A.Warning=2,A.Information=3,A.Hint=4,(L=y||(y={})).Unnecessary=1,L.Deprecated=2,function(e){function t(e){var t=e;return je.objectLiteral(t)&&je.string(t.href)}R(t,"is"),e.is=t}(b||(b={})),function(e){function t(e,t,n,r,i,o){var a={range:e,message:t};return je.defined(n)&&(a.severity=n),je.defined(r)&&(a.code=r),je.defined(i)&&(a.source=i),je.defined(o)&&(a.relatedInformation=o),a}function n(e){var t,n=e;return je.defined(n)&&l.is(n.range)&&je.string(n.message)&&(je.number(n.severity)||je.undefined(n.severity))&&(je.integer(n.code)||je.string(n.code)||je.undefined(n.code))&&(je.undefined(n.codeDescription)||je.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(je.string(n.source)||je.undefined(n.source))&&(je.undefined(n.relatedInformation)||je.typedArray(n.relatedInformation,g.is))}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(E||(E={})),function(e){function t(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={title:e,command:t};return je.defined(n)&&n.length>0&&(i.arguments=n),i}function n(e){var t=e;return je.defined(t)&&je.string(t.title)&&je.string(t.command)}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(T||(T={})),function(e){function t(e,t){return{range:e,newText:t}}function n(e,t){return{range:{start:e,end:e},newText:t}}function r(e){return{range:e,newText:""}}function i(e){var t=e;return je.objectLiteral(t)&&je.string(t.newText)&&l.is(t.range)}R(t,"replace"),e.replace=t,R(n,"insert"),e.insert=n,R(r,"del"),e.del=r,R(i,"is"),e.is=i}(w||(w={})),function(e){function t(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r}function n(e){var t=e;return je.objectLiteral(t)&&je.string(t.label)&&(je.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(je.string(t.description)||void 0===t.description)}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(C||(C={})),function(e){function t(e){var t=e;return je.string(t)}R(t,"is"),e.is=t}(x||(x={})),function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}function r(e,t){return{range:e,newText:"",annotationId:t}}function i(e){var t=e;return w.is(t)&&(C.is(t.annotationId)||x.is(t.annotationId))}R(t,"replace"),e.replace=t,R(n,"insert"),e.insert=n,R(r,"del"),e.del=r,R(i,"is"),e.is=i}(S||(S={})),function(e){function t(e,t){return{textDocument:e,edits:t}}function n(e){var t=e;return je.defined(t)&&j.is(t.textDocument)&&Array.isArray(t.edits)}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(N||(N={})),function(e){function t(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r}function n(e){var t=e;return t&&"create"===t.kind&&je.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||je.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||je.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||x.is(t.annotationId))}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(k||(k={})),function(e){function t(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i}function n(e){var t=e;return t&&"rename"===t.kind&&je.string(t.oldUri)&&je.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||je.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||je.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||x.is(t.annotationId))}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(_||(_={})),function(e){function t(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r}function n(e){var t=e;return t&&"delete"===t.kind&&je.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||je.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||je.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||x.is(t.annotationId))}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(O||(O={})),function(e){function t(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return je.string(e.kind)?k.is(e)||_.is(e)||O.is(e):N.is(e)})))}R(t,"is"),e.is=t}(I||(I={}));var F,P,j,V,U,B,$,q,H,G,W,z,K,Q,Y,J,X,Z,ee,te,ne,re,ie,oe,ae,se,le,ue,ce,de,fe,pe,he,me,ge,ve,ye,be,Ee,Te,we,Ce,xe,Se,Ne,ke,_e,Oe,Ie,Le,Ae,De,Me,Re,Fe=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return R(e,"TextEditChangeImpl"),e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=w.insert(e,t):x.is(n)?(i=n,r=S.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=S.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=w.replace(e,t):x.is(n)?(i=n,r=S.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=S.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=w.del(e):x.is(t)?(r=t,n=S.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=S.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Pe=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return R(e,"ChangeAnnotations"),e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(x.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id ".concat(n," is already in use."));if(void 0===t)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Pe(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(N.is(e)){var n=new Fe(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new Fe(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}R(e,"WorkspaceChange"),Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(j.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new Fe(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new Fe(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Pe,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(C.is(t)||x.is(t)?r=t:n=t,void 0===r?i=k.create(e,n):(o=x.is(r)?r:this._changeAnnotations.manage(r),i=k.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(C.is(n)||x.is(n)?i=n:r=n,void 0===i?o=_.create(e,t,r):(a=x.is(i)?i:this._changeAnnotations.manage(i),o=_.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(C.is(t)||x.is(t)?r=t:n=t,void 0===r?i=O.create(e,n):(o=x.is(r)?r:this._changeAnnotations.manage(r),i=O.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}})(),function(e){function t(e){return{uri:e}}function n(e){var t=e;return je.defined(t)&&je.string(t.uri)}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(F||(F={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return je.defined(t)&&je.string(t.uri)&&je.integer(t.version)}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(P||(P={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return je.defined(t)&&je.string(t.uri)&&(null===t.version||je.integer(t.version))}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(j||(j={})),function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}function n(e){var t=e;return je.defined(t)&&je.string(t.uri)&&je.string(t.languageId)&&je.integer(t.version)&&je.string(t.text)}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(V||(V={})),function(e){function t(t){var n=t;return n===e.PlainText||n===e.Markdown}e.PlainText="plaintext",e.Markdown="markdown",R(t,"is"),e.is=t}(U||(U={})),function(e){function t(e){var t=e;return je.objectLiteral(e)&&U.is(t.kind)&&je.string(t.value)}R(t,"is"),e.is=t}(B||(B={})),e.C=$,(Re=$||(e.C=$={})).Text=1,Re.Method=2,Re.Function=3,Re.Constructor=4,Re.Field=5,Re.Variable=6,Re.Class=7,Re.Interface=8,Re.Module=9,Re.Property=10,Re.Unit=11,Re.Value=12,Re.Enum=13,Re.Keyword=14,Re.Snippet=15,Re.Color=16,Re.File=17,Re.Reference=18,Re.Folder=19,Re.EnumMember=20,Re.Constant=21,Re.Struct=22,Re.Event=23,Re.Operator=24,Re.TypeParameter=25,e.I=q,(Me=q||(e.I=q={})).PlainText=1,Me.Snippet=2,(H||(H={})).Deprecated=1,function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}function n(e){var t=e;return t&&je.string(t.newText)&&l.is(t.insert)&&l.is(t.replace)}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(G||(G={})),(De=W||(W={})).asIs=1,De.adjustIndentation=2,function(e){function t(e){var t=e;return t&&(je.string(t.detail)||void 0===t.detail)&&(je.string(t.description)||void 0===t.description)}R(t,"is"),e.is=t}(z||(z={})),function(e){function t(e){return{label:e}}R(t,"create"),e.create=t}(K||(K={})),function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}R(t,"create"),e.create=t}(Q||(Q={})),function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function n(e){var t=e;return je.string(t)||je.objectLiteral(t)&&je.string(t.language)&&je.string(t.value)}R(t,"fromPlainText"),e.fromPlainText=t,R(n,"is"),e.is=n}(Y||(Y={})),function(e){function t(e){var t=e;return!!t&&je.objectLiteral(t)&&(B.is(t.contents)||Y.is(t.contents)||je.typedArray(t.contents,Y.is))&&(void 0===e.range||l.is(e.range))}R(t,"is"),e.is=t}(J||(J={})),function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}R(t,"create"),e.create=t}(X||(X={})),function(e){function t(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={label:e};return je.defined(t)&&(i.documentation=t),je.defined(n)?i.parameters=n:i.parameters=[],i}R(t,"create"),e.create=t}(Z||(Z={})),(Ae=ee||(ee={})).Text=1,Ae.Read=2,Ae.Write=3,function(e){function t(e,t){var n={range:e};return je.number(t)&&(n.kind=t),n}R(t,"create"),e.create=t}(te||(te={})),(Le=ne||(ne={})).File=1,Le.Module=2,Le.Namespace=3,Le.Package=4,Le.Class=5,Le.Method=6,Le.Property=7,Le.Field=8,Le.Constructor=9,Le.Enum=10,Le.Interface=11,Le.Function=12,Le.Variable=13,Le.Constant=14,Le.String=15,Le.Number=16,Le.Boolean=17,Le.Array=18,Le.Object=19,Le.Key=20,Le.Null=21,Le.EnumMember=22,Le.Struct=23,Le.Event=24,Le.Operator=25,Le.TypeParameter=26,(re||(re={})).Deprecated=1,function(e){function t(e,t,n,r,i){var o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o}R(t,"create"),e.create=t}(ie||(ie={})),function(e){function t(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}R(t,"create"),e.create=t}(oe||(oe={})),function(e){function t(e,t,n,r,i,o){var a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a}function n(e){var t=e;return t&&je.string(t.name)&&je.number(t.kind)&&l.is(t.range)&&l.is(t.selectionRange)&&(void 0===t.detail||je.string(t.detail))&&(void 0===t.deprecated||je.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(ae||(ae={})),(Ie=se||(se={})).Empty="",Ie.QuickFix="quickfix",Ie.Refactor="refactor",Ie.RefactorExtract="refactor.extract",Ie.RefactorInline="refactor.inline",Ie.RefactorRewrite="refactor.rewrite",Ie.Source="source",Ie.SourceOrganizeImports="source.organizeImports",Ie.SourceFixAll="source.fixAll",(Oe=le||(le={})).Invoked=1,Oe.Automatic=2,function(e){function t(e,t,n){var r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r}function n(e){var t=e;return je.defined(t)&&je.typedArray(t.diagnostics,E.is)&&(void 0===t.only||je.typedArray(t.only,je.string))&&(void 0===t.triggerKind||t.triggerKind===le.Invoked||t.triggerKind===le.Automatic)}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(ue||(ue={})),function(e){function t(e,t,n){var r={title:e},i=!0;return"string"==typeof t?(i=!1,r.kind=t):T.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r}function n(e){var t=e;return t&&je.string(t.title)&&(void 0===t.diagnostics||je.typedArray(t.diagnostics,E.is))&&(void 0===t.kind||je.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||T.is(t.command))&&(void 0===t.isPreferred||je.boolean(t.isPreferred))&&(void 0===t.edit||I.is(t.edit))}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(ce||(ce={})),function(e){function t(e,t){var n={range:e};return je.defined(t)&&(n.data=t),n}function n(e){var t=e;return je.defined(t)&&l.is(t.range)&&(je.undefined(t.command)||T.is(t.command))}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(de||(de={})),function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}function n(e){var t=e;return je.defined(t)&&je.uinteger(t.tabSize)&&je.boolean(t.insertSpaces)}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(fe||(fe={})),function(e){function t(e,t,n){return{range:e,target:t,data:n}}function n(e){var t=e;return je.defined(t)&&l.is(t.range)&&(je.undefined(t.target)||je.string(t.target))}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(pe||(pe={})),function(e){function t(e,t){return{range:e,parent:t}}function n(t){var n=t;return je.objectLiteral(n)&&l.is(n.range)&&(void 0===n.parent||e.is(n.parent))}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(he||(he={})),(_e=me||(me={})).namespace="namespace",_e.type="type",_e.class="class",_e.enum="enum",_e.interface="interface",_e.struct="struct",_e.typeParameter="typeParameter",_e.parameter="parameter",_e.variable="variable",_e.property="property",_e.enumMember="enumMember",_e.event="event",_e.function="function",_e.method="method",_e.macro="macro",_e.keyword="keyword",_e.modifier="modifier",_e.comment="comment",_e.string="string",_e.number="number",_e.regexp="regexp",_e.operator="operator",_e.decorator="decorator",(ke=ge||(ge={})).declaration="declaration",ke.definition="definition",ke.readonly="readonly",ke.static="static",ke.deprecated="deprecated",ke.abstract="abstract",ke.async="async",ke.modification="modification",ke.documentation="documentation",ke.defaultLibrary="defaultLibrary",function(e){function t(e){var t=e;return je.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}R(t,"is"),e.is=t}(ve||(ve={})),function(e){function t(e,t){return{range:e,text:t}}function n(e){var t=e;return null!=t&&l.is(t.range)&&je.string(t.text)}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(ye||(ye={})),function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}function n(e){var t=e;return null!=t&&l.is(t.range)&&je.boolean(t.caseSensitiveLookup)&&(je.string(t.variableName)||void 0===t.variableName)}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(be||(be={})),function(e){function t(e,t){return{range:e,expression:t}}function n(e){var t=e;return null!=t&&l.is(t.range)&&(je.string(t.expression)||void 0===t.expression)}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(Ee||(Ee={})),function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}function n(e){var t=e;return je.defined(t)&&l.is(e.stoppedLocation)}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(Te||(Te={})),function(e){function t(e){return 1===e||2===e}e.Type=1,e.Parameter=2,R(t,"is"),e.is=t}(we||(we={})),function(e){function t(e){return{value:e}}function n(e){var t=e;return je.objectLiteral(t)&&(void 0===t.tooltip||je.string(t.tooltip)||B.is(t.tooltip))&&(void 0===t.location||u.is(t.location))&&(void 0===t.command||T.is(t.command))}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(Ce||(Ce={})),function(e){function t(e,t,n){var r={position:e,label:t};return void 0!==n&&(r.kind=n),r}function n(e){var t=e;return je.objectLiteral(t)&&s.is(t.position)&&(je.string(t.label)||je.typedArray(t.label,Ce.is))&&(void 0===t.kind||we.is(t.kind))&&void 0===t.textEdits||je.typedArray(t.textEdits,w.is)&&(void 0===t.tooltip||je.string(t.tooltip)||B.is(t.tooltip))&&(void 0===t.paddingLeft||je.boolean(t.paddingLeft))&&(void 0===t.paddingRight||je.boolean(t.paddingRight))}R(t,"create"),e.create=t,R(n,"is"),e.is=n}(xe||(xe={})),function(e){function t(e){var t=e;return je.objectLiteral(t)&&i.is(t.uri)&&je.string(t.name)}R(t,"is"),e.is=t}(Se||(Se={})),function(e){function t(e,t,n,r){return new Ve(e,t,n,r)}function n(e){var t=e;return!!(je.defined(t)&&je.string(t.uri)&&(je.undefined(t.languageId)||je.string(t.languageId))&&je.uinteger(t.lineCount)&&je.func(t.getText)&&je.func(t.positionAt)&&je.func(t.offsetAt))}function r(e,t){for(var n=e.getText(),r=i(t,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=n.length,a=r.length-1;a>=0;a--){var s=r[a],l=e.offsetAt(s.range.start),u=e.offsetAt(s.range.end);if(!(u<=o))throw new Error("Overlapping edit");n=n.substring(0,l)+s.newText+n.substring(u,n.length),o=l}return n}function i(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),o=e.slice(n);i(r,t),i(o,t);for(var a=0,s=0,l=0;a<r.length&&s<o.length;){var u=t(r[a],o[s]);e[l++]=u<=0?r[a++]:o[s++]}for(;a<r.length;)e[l++]=r[a++];for(;s<o.length;)e[l++]=o[s++];return e}R(t,"create"),e.create=t,R(n,"is"),e.is=n,R(r,"applyEdits"),e.applyEdits=r,R(i,"mergeSort")}(Ne||(Ne={}));var je,Ve=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return R(e,"FullTextDocument"),Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return s.create(0,e);for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var o=n-1;return s.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();function Ue(e){return{ofRule:e}}function Be(e,t){return{ofRule:e,isList:!0,separator:t}}function $e(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every(t=>t.match&&!t.match(e))},e}function qe(e,t){return{style:t,match:t=>t.kind===e}}function He(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}(function(e){var t=Object.prototype.toString;function n(e){return void 0!==e}function r(e){return void 0===e}function i(e){return!0===e||!1===e}function o(e){return"[object String]"===t.call(e)}function a(e){return"[object Number]"===t.call(e)}function s(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r}function l(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647}function u(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647}function c(e){return"[object Function]"===t.call(e)}function d(e){return null!==e&&"object"==typeof e}function f(e,t){return Array.isArray(e)&&e.every(t)}R(n,"defined"),e.defined=n,R(r,"undefined$1"),e.undefined=r,R(i,"boolean"),e.boolean=i,R(o,"string"),e.string=o,R(a,"number"),e.number=a,R(s,"numberRange"),e.numberRange=s,R(l,"integer"),e.integer=l,R(u,"uinteger"),e.uinteger=u,R(c,"func"),e.func=c,R(d,"objectLiteral"),e.objectLiteral=d,R(f,"typedArray"),e.typedArray=f})(je||(je={})),R(Ue,"opt"),R(Be,"list"),R($e,"butNot"),R(qe,"t"),R(He,"p");const Ge=R(e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e,"isIgnored");e.i=Ge;const We={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/};e.L=We;const ze={Document:[Be("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return t.Kind.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[Ke("query"),Ue(Qe("def")),Ue("VariableDefinitions"),Be("Directive"),"SelectionSet"],Mutation:[Ke("mutation"),Ue(Qe("def")),Ue("VariableDefinitions"),Be("Directive"),"SelectionSet"],Subscription:[Ke("subscription"),Ue(Qe("def")),Ue("VariableDefinitions"),Be("Directive"),"SelectionSet"],VariableDefinitions:[He("("),Be("VariableDefinition"),He(")")],VariableDefinition:["Variable",He(":"),"Type",Ue("DefaultValue")],Variable:[He("$","variable"),Qe("variable")],DefaultValue:[He("="),"Value"],SelectionSet:[He("{"),Be("Selection"),He("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[Qe("property"),He(":"),Qe("qualifier"),Ue("Arguments"),Be("Directive"),Ue("SelectionSet")],Field:[Qe("property"),Ue("Arguments"),Be("Directive"),Ue("SelectionSet")],Arguments:[He("("),Be("Argument"),He(")")],Argument:[Qe("attribute"),He(":"),"Value"],FragmentSpread:[He("..."),Qe("def"),Be("Directive")],InlineFragment:[He("..."),Ue("TypeCondition"),Be("Directive"),"SelectionSet"],FragmentDefinition:[Ke("fragment"),Ue($e(Qe("def"),[Ke("on")])),"TypeCondition",Be("Directive"),"SelectionSet"],TypeCondition:[Ke("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[qe("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[qe("Name","builtin")],NullValue:[qe("Name","keyword")],EnumValue:[Qe("string-2")],ListValue:[He("["),Be("Value"),He("]")],ObjectValue:[He("{"),Be("ObjectField"),He("}")],ObjectField:[Qe("attribute"),He(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[He("["),"Type",He("]"),Ue(He("!"))],NonNullType:["NamedType",Ue(He("!"))],NamedType:[Ye("atom")],Directive:[He("@","meta"),Qe("meta"),Ue("Arguments")],DirectiveDef:[Ke("directive"),He("@","meta"),Qe("meta"),Ue("ArgumentsDef"),Ke("on"),Be("DirectiveLocation",He("|"))],InterfaceDef:[Ke("interface"),Qe("atom"),Ue("Implements"),Be("Directive"),He("{"),Be("FieldDef"),He("}")],Implements:[Ke("implements"),Be("NamedType",He("&"))],DirectiveLocation:[Qe("string-2")],SchemaDef:[Ke("schema"),Be("Directive"),He("{"),Be("OperationTypeDef"),He("}")],OperationTypeDef:[Qe("keyword"),He(":"),Qe("atom")],ScalarDef:[Ke("scalar"),Qe("atom"),Be("Directive")],ObjectTypeDef:[Ke("type"),Qe("atom"),Ue("Implements"),Be("Directive"),He("{"),Be("FieldDef"),He("}")],FieldDef:[Qe("property"),Ue("ArgumentsDef"),He(":"),"Type",Be("Directive")],ArgumentsDef:[He("("),Be("InputValueDef"),He(")")],InputValueDef:[Qe("attribute"),He(":"),"Type",Ue("DefaultValue"),Be("Directive")],UnionDef:[Ke("union"),Qe("atom"),Be("Directive"),He("="),Be("UnionMember",He("|"))],UnionMember:["NamedType"],EnumDef:[Ke("enum"),Qe("atom"),Be("Directive"),He("{"),Be("EnumValueDef"),He("}")],EnumValueDef:[Qe("string-2"),Be("Directive")],InputDef:[Ke("input"),Qe("atom"),Be("Directive"),He("{"),Be("InputValueDef"),He("}")],ExtendDef:[Ke("extend"),"ObjectTypeDef"]};function Ke(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function Qe(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function Ye(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){var n;(null===(n=e.prevState)||void 0===n?void 0:n.prevState)&&(e.name=t.value,e.prevState.prevState.type=t.value)}}}function Je(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{eatWhitespace:e=>e.eatWhile(Ge),lexRules:We,parseRules:ze,editorConfig:{}};return{startState(){const n={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return tt(e.parseRules,n,t.Kind.DOCUMENT),n},token:(t,n)=>Xe(t,n,e)}}function Xe(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:i,parseRules:o,eatWhitespace:a,editorConfig:s}=n;if(t.rule&&0===t.rule.length?nt(t):t.needsAdvance&&(t.needsAdvance=!1,rt(t,!0)),e.sol()){const n=(null==s?void 0:s.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(a(e))return"ws";const l=at(i,e);if(!l)return e.match(/\S+/)||e.match(/\s/),tt(et,t,"Invalid"),"invalidchar";if("Comment"===l.kind)return tt(et,t,"Comment"),"comment";const u=Ze({},t);if("Punctuation"===l.kind)if(/^[{([]/.test(l.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(l.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]<t.indentLevel&&(t.indentLevel=e[e.length-1])}for(;t.rule;){let n="function"==typeof t.rule?0===t.step?t.rule(l,e):null:t.rule[t.step];if(t.needsSeperator&&(n=null==n?void 0:n.separator),n){if(n.ofRule&&(n=n.ofRule),"string"==typeof n){tt(o,t,n);continue}if(null===(r=n.match)||void 0===r?void 0:r.call(n,l))return n.update&&n.update(t,l),"Punctuation"===l.kind?rt(t,!0):t.needsAdvance=!0,n.style}ot(t)}return Ze(t,u),tt(et,t,"Invalid"),"invalidchar"}function Ze(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}e.P=ze,R(Ke,"word"),R(Qe,"name"),R(Ye,"type"),R(Je,"onlineParser"),R(Xe,"getToken"),R(Ze,"assign");const et={Invalid:[],Comment:[]};function tt(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=Object.assign({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeperator=!1}function nt(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeperator=e.prevState.needsSeperator,e.prevState=e.prevState.prevState)}function rt(e,t){var n;if(it(e)&&e.rule){const n=e.rule[e.step];if(n.separator){const t=n.separator;if(e.needsSeperator=!e.needsSeperator,!e.needsSeperator&&t.ofRule)return}if(t)return}for(e.needsSeperator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)nt(e),e.rule&&(it(e)?(null===(n=e.rule)||void 0===n?void 0:n[e.step].separator)&&(e.needsSeperator=!e.needsSeperator):(e.needsSeperator=!1,e.step++))}function it(e){const t=Array.isArray(e.rule)&&"string"!=typeof e.rule[e.step]&&e.rule[e.step];return t&&t.isList}function ot(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)nt(e);e.rule&&rt(e,!1)}function at(e,t){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}R(tt,"pushRule"),R(nt,"popRule"),R(rt,"advanceRule"),R(it,"isList"),R(ot,"unsuccessful"),R(at,"lex");const st=Object.assign(Object.assign({},t.Kind),{ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"});var lt;e.R=st,globalThis&&globalThis.__awaiter,function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(lt||(lt={}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.s=e.a=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}r(i,"_mergeNamespaces");var o={exports:{}};e.a=o,function(e){var t,n,i=e.Pos;function o(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function a(e,t){for(var n=o(e),r=n,i=0;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return n==r?e:new RegExp(e.source,r)}function s(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function l(e,t,n){t=a(t,"g");for(var r=n.line,o=n.ch,s=e.lastLine();r<=s;r++,o=0){t.lastIndex=o;var l=e.getLine(r),u=t.exec(l);if(u)return{from:i(r,u.index),to:i(r,u.index+u[0].length),match:u}}}function u(e,t,n){if(!s(t))return l(e,t,n);t=a(t,"gm");for(var r,o=1,u=n.line,c=e.lastLine();u<=c;){for(var d=0;d<o&&!(u>c);d++){var f=e.getLine(u++);r=null==r?f:r+"\n"+f}o*=2,t.lastIndex=n.ch;var p=t.exec(r);if(p){var h=r.slice(0,p.index).split("\n"),m=p[0].split("\n"),g=n.line+h.length-1,v=h[h.length-1].length;return{from:i(g,v),to:i(g+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:p}}}}function c(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function d(e,t,n){t=a(t,"g");for(var r=n.line,o=n.ch,s=e.firstLine();r>=s;r--,o=-1){var l=e.getLine(r),u=c(l,t,o<0?0:l.length-o);if(u)return{from:i(r,u.index),to:i(r,u.index+u[0].length),match:u}}}function f(e,t,n){if(!s(t))return d(e,t,n);t=a(t,"gm");for(var r,o=1,l=e.getLine(n.line).length-n.ch,u=n.line,f=e.firstLine();u>=f;){for(var p=0;p<o&&u>=f;p++){var h=e.getLine(u--);r=null==r?h:h+"\n"+r}o*=2;var m=c(r,t,l);if(m){var g=r.slice(0,m.index).split("\n"),v=m[0].split("\n"),y=u+g.length,b=g[g.length-1].length;return{from:i(y,b),to:i(y+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:m}}}}function p(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function h(e,r,o,a){if(!r.length)return null;var s=a?t:n,l=s(r).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,d=e.lastLine()+1-l.length;u<=d;u++,c=0){var f=e.getLine(u).slice(c),h=s(f);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=p(f,h,m,s)+c,{from:i(u,p(f,h,m,s)+c),to:i(u,p(f,h,m+l[0].length,s)+c)}}var g=h.length-l[0].length;if(h.slice(g)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(u+v))!=l[v])continue e;var y=e.getLine(u+l.length-1),b=s(y),E=l[l.length-1];if(b.slice(0,E.length)==E)return{from:i(u,p(f,h,g,s)+c),to:i(u+l.length-1,p(y,b,E.length,s))}}}}function m(e,r,o,a){if(!r.length)return null;var s=a?t:n,l=s(r).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,d=e.firstLine()-1+l.length;u>=d;u--,c=-1){var f=e.getLine(u);c>-1&&(f=f.slice(0,c));var h=s(f);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:i(u,p(f,h,m,s)),to:i(u,p(f,h,m+l[0].length,s))}}var g=l[l.length-1];if(h.slice(0,g.length)==g){var v=1;for(o=u-l.length+1;v<l.length-1;v++)if(s(e.getLine(o+v))!=l[v])continue e;var y=e.getLine(u+1-l.length),b=s(y);if(b.slice(b.length-l[0].length)==l[0])return{from:i(u+1-l.length,p(y,b,y.length-l[0].length,s)),to:i(u,p(f,h,g.length,s))}}}}function g(e,t,n,r){var o;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):i(0,0),this.pos={from:n,to:n},"object"==typeof r?o=r.caseFold:(o=r,r=null),"string"==typeof t?(null==o&&(o=!1),this.matches=function(n,r){return(n?m:h)(e,t,r,o)}):(t=a(t,"gm"),r&&!1===r.multiline?this.matches=function(n,r){return(n?d:l)(e,t,r)}:this.matches=function(n,r){return(n?f:u)(e,t,r)})}r(o,"regexpFlags"),r(a,"ensureFlags"),r(s,"maybeMultiline"),r(l,"searchRegexpForward"),r(u,"searchRegexpForwardMultiline"),r(c,"lastMatchIn"),r(d,"searchRegexpBackward"),r(f,"searchRegexpBackwardMultiline"),String.prototype.normalize?(t=r((function(e){return e.normalize("NFD").toLowerCase()}),"doFold"),n=r((function(e){return e.normalize("NFD")}),"noFold")):(t=r((function(e){return e.toLowerCase()}),"doFold"),n=r((function(e){return e}),"noFold")),r(p,"adjustPos"),r(h,"searchStringForward"),r(m,"searchStringBackward"),r(g,"SearchCursor"),g.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=i(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var r=this.matches(t,n);if(this.afterEmptyMatch=r&&0==e.cmpPos(r.from,r.to),r)return this.pos=r,this.atOccurrence=!0,this.pos.match||!0;var o=i(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var r=e.splitLines(t);this.doc.replaceRange(r,this.pos.from,this.pos.to,n),this.pos.to=i(this.pos.from.line+r.length-1,r[r.length-1].length+(1==r.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new g(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new g(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(t.a.exports);var a=i({__proto__:null,default:o.exports},[o.exports]);e.s=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.d=e.a=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}r(i,"_mergeNamespaces");var o={exports:{}};e.a=o,function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}r(t,"dialogDiv"),r(n,"closeNotification"),e.defineExtension("openDialog",(function(i,o,a){a||(a={}),n(this,null);var s=t(this,i,a.bottom),l=!1,u=this;function c(t){if("string"==typeof t)f.value=t;else{if(l)return;l=!0,e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s),u.focus(),a.onClose&&a.onClose(s)}}r(c,"close");var d,f=s.getElementsByTagName("input")[0];return f?(f.focus(),a.value&&(f.value=a.value,!1!==a.selectValueOnOpen&&f.select()),a.onInput&&e.on(f,"input",(function(e){a.onInput(e,f.value,c)})),a.onKeyUp&&e.on(f,"keyup",(function(e){a.onKeyUp(e,f.value,c)})),e.on(f,"keydown",(function(t){a&&a.onKeyDown&&a.onKeyDown(t,f.value,c)||((27==t.keyCode||!1!==a.closeOnEnter&&13==t.keyCode)&&(f.blur(),e.e_stop(t),c()),13==t.keyCode&&o(f.value,t))})),!1!==a.closeOnBlur&&e.on(s,"focusout",(function(e){null!==e.relatedTarget&&c()}))):(d=s.getElementsByTagName("button")[0])&&(e.on(d,"click",(function(){c(),u.focus()})),!1!==a.closeOnBlur&&e.on(d,"blur",c),d.focus()),c})),e.defineExtension("openConfirm",(function(i,o,a){n(this,null);var s=t(this,i,a&&a.bottom),l=s.getElementsByTagName("button"),u=!1,c=this,d=1;function f(){u||(u=!0,e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s),c.focus())}r(f,"close"),l[0].focus();for(var p=0;p<l.length;++p){var h=l[p];!function(t){e.on(h,"click",(function(n){e.e_preventDefault(n),f(),t&&t(c)}))}(o[p]),e.on(h,"blur",(function(){--d,setTimeout((function(){d<=0&&f()}),200)})),e.on(h,"focus",(function(){++d}))}})),e.defineExtension("openNotification",(function(i,o){n(this,c);var a,s=t(this,i,o&&o.bottom),l=!1,u=o&&void 0!==o.duration?o.duration:5e3;function c(){l||(l=!0,clearTimeout(a),e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s))}return r(c,"close"),e.on(s,"click",(function(t){e.e_preventDefault(t),c()})),u&&(a=setTimeout(c,u)),c}))}(t.a.exports);var a=i({__proto__:null,default:o.exports},[o.exports]);e.d=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.a=e.T=e.S=void 0;var t=Object.defineProperty,n=(e,n)=>t(e,"name",{value:n,configurable:!0});function r(e){return i(e,[])}function i(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return o(e,t);default:return String(e)}}function o(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(a(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:i(t,n)}else if(Array.isArray(e))return l(e,n);return s(e,n)}function a(e){return"function"==typeof e.toJSON}function s(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>2?"["+u(e)+"]":"{ "+n.map(e=>{let[n,r]=e;return n+": "+i(r,t)}).join(", ")+" }"}function l(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,o=[];for(let r=0;r<n;++r)o.push(i(e[r],t));return 1===r?o.push("... 1 more item"):r>1&&o.push(`... ${r} more items`),"["+o.join(", ")+"]"}function u(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}function c(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}let d;function f(e){return 9===e||32===e}function p(e){return e>=48&&e<=57}function h(e){return e>=97&&e<=122||e>=65&&e<=90}function m(e){return h(e)||95===e}function g(e){return h(e)||p(e)||95===e}function v(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every(e=>0===e.length||f(e.charCodeAt(0))),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,l=e.endsWith("\\"),u=s||l,c=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||a);let d="";const p=i&&f(e.charCodeAt(0));return(c&&!p||o)&&(d+="\n"),d+=n,(c||u)&&(d+="\n"),'"""'+d+'"""'}function y(e){return`"${e.replace(E,T)}"`}var b;n(r,"inspect"),n(i,"formatValue"),n(o,"formatObjectValue"),n(a,"isJSONable"),n(s,"formatObject"),n(l,"formatArray"),n(u,"getObjectTag"),n(c,"invariant"),(b=d||(d={})).QUERY="QUERY",b.MUTATION="MUTATION",b.SUBSCRIPTION="SUBSCRIPTION",b.FIELD="FIELD",b.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",b.FRAGMENT_SPREAD="FRAGMENT_SPREAD",b.INLINE_FRAGMENT="INLINE_FRAGMENT",b.VARIABLE_DEFINITION="VARIABLE_DEFINITION",b.SCHEMA="SCHEMA",b.SCALAR="SCALAR",b.OBJECT="OBJECT",b.FIELD_DEFINITION="FIELD_DEFINITION",b.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",b.INTERFACE="INTERFACE",b.UNION="UNION",b.ENUM="ENUM",b.ENUM_VALUE="ENUM_VALUE",b.INPUT_OBJECT="INPUT_OBJECT",b.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",n(f,"isWhiteSpace"),n(p,"isDigit$1"),n(h,"isLetter"),n(m,"isNameStart"),n(g,"isNameContinue"),n(v,"printBlockString"),n(y,"printString");const E=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function T(e){return w[e.charCodeAt(0)]}n(T,"escapedReplacer");const w=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function C(e,t){if(!Boolean(e))throw new Error(t)}n(C,"devAssert");const x={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},S=new Set(Object.keys(x));function N(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&S.has(t)}let k,_;var O,I;n(N,"isNode"),(I=k||(k={})).QUERY="query",I.MUTATION="mutation",I.SUBSCRIPTION="subscription",(O=_||(_={})).NAME="Name",O.DOCUMENT="Document",O.OPERATION_DEFINITION="OperationDefinition",O.VARIABLE_DEFINITION="VariableDefinition",O.SELECTION_SET="SelectionSet",O.FIELD="Field",O.ARGUMENT="Argument",O.FRAGMENT_SPREAD="FragmentSpread",O.INLINE_FRAGMENT="InlineFragment",O.FRAGMENT_DEFINITION="FragmentDefinition",O.VARIABLE="Variable",O.INT="IntValue",O.FLOAT="FloatValue",O.STRING="StringValue",O.BOOLEAN="BooleanValue",O.NULL="NullValue",O.ENUM="EnumValue",O.LIST="ListValue",O.OBJECT="ObjectValue",O.OBJECT_FIELD="ObjectField",O.DIRECTIVE="Directive",O.NAMED_TYPE="NamedType",O.LIST_TYPE="ListType",O.NON_NULL_TYPE="NonNullType",O.SCHEMA_DEFINITION="SchemaDefinition",O.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",O.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",O.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",O.FIELD_DEFINITION="FieldDefinition",O.INPUT_VALUE_DEFINITION="InputValueDefinition",O.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",O.UNION_TYPE_DEFINITION="UnionTypeDefinition",O.ENUM_TYPE_DEFINITION="EnumTypeDefinition",O.ENUM_VALUE_DEFINITION="EnumValueDefinition",O.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",O.DIRECTIVE_DEFINITION="DirectiveDefinition",O.SCHEMA_EXTENSION="SchemaExtension",O.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",O.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",O.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",O.UNION_TYPE_EXTENSION="UnionTypeExtension",O.ENUM_TYPE_EXTENSION="EnumTypeExtension",O.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";const L=Object.freeze({});function A(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x;const i=new Map;for(const e of Object.values(_))i.set(e,D(t,e));let o=void 0,a=Array.isArray(e),s=[e],l=-1,u=[],c=e,d=void 0,f=void 0;const p=[],h=[];do{l++;const e=l===s.length,y=e&&0!==u.length;if(e){if(d=0===h.length?void 0:p[p.length-1],c=f,f=h.pop(),y)if(a){c=c.slice();let e=0;for(const[t,n]of u){const r=t-e;null===n?(c.splice(r,1),e++):c[r]=n}}else{c=Object.defineProperties({},Object.getOwnPropertyDescriptors(c));for(const[e,t]of u)c[e]=t}l=o.index,s=o.keys,u=o.edits,a=o.inArray,o=o.prev}else if(f){if(d=a?l:s[l],c=f[d],null==c)continue;p.push(d)}let b;if(!Array.isArray(c)){var m,g;N(c)||C(!1,`Invalid AST Node: ${r(c)}.`);const n=e?null===(m=i.get(c.kind))||void 0===m?void 0:m.leave:null===(g=i.get(c.kind))||void 0===g?void 0:g.enter;if(b=null==n?void 0:n.call(t,c,d,f,p,h),b===L)break;if(!1===b){if(!e){p.pop();continue}}else if(void 0!==b&&(u.push([d,b]),!e)){if(!N(b)){p.pop();continue}c=b}}var v;void 0===b&&y&&u.push([d,c]),e?p.pop():(o={inArray:a,index:l,keys:s,edits:u,prev:o},a=Array.isArray(c),s=a?c:null!==(v=n[c.kind])&&void 0!==v?v:[],l=-1,u=[],f&&h.push(f),f=c)}while(void 0!==o);return 0!==u.length?u[u.length-1][1]:e}function D(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function M(e){return A(e,R)}n(A,"visit"),n(D,"getEnterLeaveForKind"),n(M,"print");const R={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>F(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=j("(",F(e.variableDefinitions,", "),")"),n=F([e.operation,F([e.name,t]),F(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:e=>{let{variable:t,type:n,defaultValue:r,directives:i}=e;return t+": "+n+j(" = ",r)+j(" ",F(i," "))}},SelectionSet:{leave:e=>{let{selections:t}=e;return P(t)}},Field:{leave(e){let{alias:t,name:n,arguments:r,directives:i,selectionSet:o}=e;const a=j("",t,": ")+n;let s=a+j("(",F(r,", "),")");return s.length>80&&(s=a+j("(\n",V(F(r,"\n")),"\n)")),F([s,F(i," "),o]," ")}},Argument:{leave:e=>{let{name:t,value:n}=e;return t+": "+n}},FragmentSpread:{leave:e=>{let{name:t,directives:n}=e;return"..."+t+j(" ",F(n," "))}},InlineFragment:{leave:e=>{let{typeCondition:t,directives:n,selectionSet:r}=e;return F(["...",j("on ",t),F(n," "),r]," ")}},FragmentDefinition:{leave:e=>{let{name:t,typeCondition:n,variableDefinitions:r,directives:i,selectionSet:o}=e;return`fragment ${t}${j("(",F(r,", "),")")} on ${n} ${j("",F(i," ")," ")}`+o}},IntValue:{leave:e=>{let{value:t}=e;return t}},FloatValue:{leave:e=>{let{value:t}=e;return t}},StringValue:{leave:e=>{let{value:t,block:n}=e;return n?v(t):y(t)}},BooleanValue:{leave:e=>{let{value:t}=e;return t?"true":"false"}},NullValue:{leave:()=>"null"},EnumValue:{leave:e=>{let{value:t}=e;return t}},ListValue:{leave:e=>{let{values:t}=e;return"["+F(t,", ")+"]"}},ObjectValue:{leave:e=>{let{fields:t}=e;return"{"+F(t,", ")+"}"}},ObjectField:{leave:e=>{let{name:t,value:n}=e;return t+": "+n}},Directive:{leave:e=>{let{name:t,arguments:n}=e;return"@"+t+j("(",F(n,", "),")")}},NamedType:{leave:e=>{let{name:t}=e;return t}},ListType:{leave:e=>{let{type:t}=e;return"["+t+"]"}},NonNullType:{leave:e=>{let{type:t}=e;return t+"!"}},SchemaDefinition:{leave:e=>{let{description:t,directives:n,operationTypes:r}=e;return j("",t,"\n")+F(["schema",F(n," "),P(r)]," ")}},OperationTypeDefinition:{leave:e=>{let{operation:t,type:n}=e;return t+": "+n}},ScalarTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r}=e;return j("",t,"\n")+F(["scalar",n,F(r," ")]," ")}},ObjectTypeDefinition:{leave:e=>{let{description:t,name:n,interfaces:r,directives:i,fields:o}=e;return j("",t,"\n")+F(["type",n,j("implements ",F(r," & ")),F(i," "),P(o)]," ")}},FieldDefinition:{leave:e=>{let{description:t,name:n,arguments:r,type:i,directives:o}=e;return j("",t,"\n")+n+(U(r)?j("(\n",V(F(r,"\n")),"\n)"):j("(",F(r,", "),")"))+": "+i+j(" ",F(o," "))}},InputValueDefinition:{leave:e=>{let{description:t,name:n,type:r,defaultValue:i,directives:o}=e;return j("",t,"\n")+F([n+": "+r,j("= ",i),F(o," ")]," ")}},InterfaceTypeDefinition:{leave:e=>{let{description:t,name:n,interfaces:r,directives:i,fields:o}=e;return j("",t,"\n")+F(["interface",n,j("implements ",F(r," & ")),F(i," "),P(o)]," ")}},UnionTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r,types:i}=e;return j("",t,"\n")+F(["union",n,F(r," "),j("= ",F(i," | "))]," ")}},EnumTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r,values:i}=e;return j("",t,"\n")+F(["enum",n,F(r," "),P(i)]," ")}},EnumValueDefinition:{leave:e=>{let{description:t,name:n,directives:r}=e;return j("",t,"\n")+F([n,F(r," ")]," ")}},InputObjectTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r,fields:i}=e;return j("",t,"\n")+F(["input",n,F(r," "),P(i)]," ")}},DirectiveDefinition:{leave:e=>{let{description:t,name:n,arguments:r,repeatable:i,locations:o}=e;return j("",t,"\n")+"directive @"+n+(U(r)?j("(\n",V(F(r,"\n")),"\n)"):j("(",F(r,", "),")"))+(i?" repeatable":"")+" on "+F(o," | ")}},SchemaExtension:{leave:e=>{let{directives:t,operationTypes:n}=e;return F(["extend schema",F(t," "),P(n)]," ")}},ScalarTypeExtension:{leave:e=>{let{name:t,directives:n}=e;return F(["extend scalar",t,F(n," ")]," ")}},ObjectTypeExtension:{leave:e=>{let{name:t,interfaces:n,directives:r,fields:i}=e;return F(["extend type",t,j("implements ",F(n," & ")),F(r," "),P(i)]," ")}},InterfaceTypeExtension:{leave:e=>{let{name:t,interfaces:n,directives:r,fields:i}=e;return F(["extend interface",t,j("implements ",F(n," & ")),F(r," "),P(i)]," ")}},UnionTypeExtension:{leave:e=>{let{name:t,directives:n,types:r}=e;return F(["extend union",t,F(n," "),j("= ",F(r," | "))]," ")}},EnumTypeExtension:{leave:e=>{let{name:t,directives:n,values:r}=e;return F(["extend enum",t,F(n," "),P(r)]," ")}},InputObjectTypeExtension:{leave:e=>{let{name:t,directives:n,fields:r}=e;return F(["extend input",t,F(n," "),P(r)]," ")}}};function F(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function P(e){return j("{\n",V(F(e,"\n")),"\n}")}function j(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function V(e){return j("  ",e.replace(/\n/g,"\n  "))}function U(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}function B(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function $(e){return"object"==typeof e&&null!==e}function q(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}function H(e){return e}n(F,"join"),n(P,"block"),n(j,"wrap"),n(V,"indent"),n(U,"hasMultilineItems"),n(B,"isIterableObject"),n($,"isObjectLike"),n(q,"didYouMean"),n(H,"identityFunc");const G=n((function(e,t){return e instanceof t}),"instanceOf");function W(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function z(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}function K(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function Q(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(J(i)&&J(o)){let a=0;do{++n,a=10*a+i-Y,i=e.charCodeAt(n)}while(J(i)&&a>0);let s=0;do{++r,s=10*s+o-Y,o=t.charCodeAt(r)}while(J(o)&&s>0);if(a<s)return-1;if(a>s)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}n(W,"keyMap"),n(z,"keyValMap"),n(K,"mapValue"),n(Q,"naturalCompare");const Y=48;function J(e){return!isNaN(e)&&Y<=e&&e<=57}function X(e,t){const n=Object.create(null),r=new Z(e),i=Math.floor(.4*e.length)+1;for(const e of t){const t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{const r=n[e]-n[t];return 0!==r?r:Q(e,t)})}n(J,"isDigit"),n(X,"suggestionList");class Z{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=ee(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=ee(n),i=this._inputArray;if(r.length<i.length){const e=r;r=i,i=e}const o=r.length,a=i.length;if(o-a>t)return;const s=this._rows;for(let e=0;e<=a;e++)s[0][e]=e;for(let e=1;e<=o;e++){const n=s[(e-1)%3],o=s[e%3];let l=o[0]=e;for(let t=1;t<=a;t++){const a=r[e-1]===i[t-1]?0:1;let u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+a);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=s[(e-2)%3][t-2];u=Math.min(u,n+1)}u<l&&(l=u),o[t]=u}if(l>t)return}const l=s[o%3][a];return l<=t?l:void 0}}function ee(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function te(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}n(Z,"LexicalDistance"),n(ee,"stringToArray"),n(te,"toObjMap");const ne=/\r\n|[\n\r]/g;function re(e,t){let n=0,r=1;for(const i of e.body.matchAll(ne)){if("number"==typeof i.index||c(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function ie(e){return oe(e.source,re(e.source,e.start))}function oe(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,l=t.column+s,u=`${e.name}:${a}:${l}\n`,c=r.split(/\r\n|[\n\r]/g),d=c[i];if(d.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return u+ae([[a+" |",n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return u+ae([[a-1+" |",c[i-1]],[a+" |",d],["|","^".padStart(l)],[a+1+" |",c[i+1]]])}function ae(e){const t=e.filter(e=>{let[t,n]=e;return void 0!==n}),n=Math.max(...t.map(e=>{let[t]=e;return t.length}));return t.map(e=>{let[t,r]=e;return t.padStart(n)+(r?" "+r:"")}).join("\n")}function se(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}n(re,"getLocation"),n(ie,"printLocation"),n(oe,"printSourceLocation"),n(ae,"printPrefixedLines"),n(se,"toNormalizedOptions");class le extends Error{constructor(e){for(var t,n,r,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];const{nodes:s,source:l,positions:u,path:c,originalError:d,extensions:f}=se(o);super(e),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=d?d:void 0,this.nodes=ue(Array.isArray(s)?s:s?[s]:void 0);const p=ue(null===(t=this.nodes)||void 0===t?void 0:t.map(e=>e.loc).filter(e=>null!=e));this.source=null!=l?l:null==p||null===(n=p[0])||void 0===n?void 0:n.source,this.positions=null!=u?u:null==p?void 0:p.map(e=>e.start),this.locations=u&&l?u.map(e=>re(l,e)):null==p?void 0:p.map(e=>re(e.source,e.start));const h=$(null==d?void 0:d.extensions)?null==d?void 0:d.extensions:void 0;this.extensions=null!==(r=null!=f?f:h)&&void 0!==r?r:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,le):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+ie(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+oe(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function ue(e){return void 0===e||0===e.length?void 0:e}function ce(e,t){switch(e.kind){case _.NULL:return null;case _.INT:return parseInt(e.value,10);case _.FLOAT:return parseFloat(e.value);case _.STRING:case _.ENUM:case _.BOOLEAN:return e.value;case _.LIST:return e.values.map(e=>ce(e,t));case _.OBJECT:return z(e.fields,e=>e.name.value,e=>ce(e.value,t));case _.VARIABLE:return null==t?void 0:t[e.name.value]}}function de(e){if(null!=e||C(!1,"Must provide name."),"string"==typeof e||C(!1,"Expected name to be a string."),0===e.length)throw new le("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!g(e.charCodeAt(t)))throw new le(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!m(e.charCodeAt(0)))throw new le(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function fe(e){if("true"===e||"false"===e||"null"===e)throw new le("Enum values cannot be named: "+e);return de(e)}function pe(e){return he(e)||me(e)||ge(e)||ve(e)||ye(e)||be(e)||Ee(e)||Te(e)}function he(e){return G(e,Oe)}function me(e){return G(e,Ie)}function ge(e){return G(e,Pe)}function ve(e){return G(e,je)}function ye(e){return G(e,Ue)}function be(e){return G(e,qe)}function Ee(e){return G(e,xe)}function Te(e){return G(e,Se)}function we(e){return he(e)||ye(e)}function Ce(e){return ge(e)||ve(e)}n(le,"GraphQLError"),n(ue,"undefinedIfEmpty"),n(ce,"valueFromASTUntyped"),n(de,"assertName"),n(fe,"assertEnumValueName"),n(pe,"isType"),n(he,"isScalarType"),n(me,"isObjectType"),n(ge,"isInterfaceType"),n(ve,"isUnionType"),n(ye,"isEnumType"),n(be,"isInputObjectType"),n(Ee,"isListType"),n(Te,"isNonNullType"),n(we,"isLeafType"),n(Ce,"isAbstractType");class xe{constructor(e){pe(e)||C(!1,`Expected ${r(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}n(xe,"GraphQLList");class Se{constructor(e){Ne(e)||C(!1,`Expected ${r(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function Ne(e){return pe(e)&&!Te(e)}function ke(e){return"function"==typeof e?e():e}function _e(e){return"function"==typeof e?e():e}n(Se,"GraphQLNonNull"),n(Ne,"isNullableType"),n(ke,"resolveReadonlyArrayThunk"),n(_e,"resolveObjMapThunk");class Oe{constructor(e){var t,n,i,o;const a=null!==(t=e.parseValue)&&void 0!==t?t:H;this.name=de(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:H,this.parseValue=a,this.parseLiteral=null!==(i=e.parseLiteral)&&void 0!==i?i:(e,t)=>a(ce(e,t)),this.extensions=te(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(o=e.extensionASTNodes)&&void 0!==o?o:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||C(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${r(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||C(!1,this.name+' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.'),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||C(!1,this.name+' must provide both "parseValue" and "parseLiteral" functions.'))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}n(Oe,"GraphQLScalarType");class Ie{constructor(e){var t;this.name=de(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=te(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>Ae(e),this._interfaces=()=>Le(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||C(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${r(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Re(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Le(e){var t;const n=ke(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||C(!1,e.name+" interfaces must be an Array or a function which returns an Array."),n}function Ae(e){const t=_e(e.fields);return Me(t)||C(!1,e.name+" fields must be an object with field names as keys or a function which returns such an object."),K(t,(t,n)=>{var i;Me(t)||C(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||C(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${r(t.resolve)}.`);const o=null!==(i=t.args)&&void 0!==i?i:{};return Me(o)||C(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:de(n),description:t.description,type:t.type,args:De(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:te(t.extensions),astNode:t.astNode}})}function De(e){return Object.entries(e).map(e=>{let[t,n]=e;return{name:de(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:te(n.extensions),astNode:n.astNode}})}function Me(e){return $(e)&&!Array.isArray(e)}function Re(e){return K(e,e=>({description:e.description,type:e.type,args:Fe(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function Fe(e){return z(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}n(Ie,"GraphQLObjectType"),n(Le,"defineInterfaces"),n(Ae,"defineFieldMap"),n(De,"defineArguments"),n(Me,"isPlainObj"),n(Re,"fieldsToFieldsConfig"),n(Fe,"argsToArgsConfig");class Pe{constructor(e){var t;this.name=de(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=te(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Ae.bind(void 0,e),this._interfaces=Le.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||C(!1,`${this.name} must provide "resolveType" as a function, but got: ${r(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Re(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}n(Pe,"GraphQLInterfaceType");class je{constructor(e){var t;this.name=de(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=te(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Ve.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||C(!1,`${this.name} must provide "resolveType" as a function, but got: ${r(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ve(e){const t=ke(e.types);return Array.isArray(t)||C(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}n(je,"GraphQLUnionType"),n(Ve,"defineTypes");class Ue{constructor(e){var t;this.name=de(e.name),this.description=e.description,this.extensions=te(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=$e(this.name,e.values),this._valueLookup=new Map(this._values.map(e=>[e.value,e])),this._nameLookup=W(this._values,e=>e.name)}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new le(`Enum "${this.name}" cannot represent value: ${r(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=r(e);throw new le(`Enum "${this.name}" cannot represent non-string value: ${t}.`+Be(this,t))}const t=this.getValue(e);if(null==t)throw new le(`Value "${e}" does not exist in "${this.name}" enum.`+Be(this,e));return t.value}parseLiteral(e,t){if(e.kind!==_.ENUM){const t=M(e);throw new le(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+Be(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=M(e);throw new le(`Value "${t}" does not exist in "${this.name}" enum.`+Be(this,t),{nodes:e})}return n.value}toConfig(){const e=z(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Be(e,t){return q("the enum value",X(t,e.getValues().map(e=>e.name)))}function $e(e,t){return Me(t)||C(!1,e+" values must be an object with value names as keys."),Object.entries(t).map(t=>{let[n,i]=t;return Me(i)||C(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${r(i)}.`),{name:fe(n),description:i.description,value:void 0!==i.value?i.value:n,deprecationReason:i.deprecationReason,extensions:te(i.extensions),astNode:i.astNode}})}n(Ue,"GraphQLEnumType"),n(Be,"didYouMeanEnumValue"),n($e,"defineEnumValues");class qe{constructor(e){var t;this.name=de(e.name),this.description=e.description,this.extensions=te(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=He.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=K(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function He(e){const t=_e(e.fields);return Me(t)||C(!1,e.name+" fields must be an object with field names as keys or a function which returns such an object."),K(t,(t,n)=>(!("resolve"in t)||C(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:de(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:te(t.extensions),astNode:t.astNode}))}n(qe,"GraphQLInputObjectType"),n(He,"defineInputFieldMap");const Ge=new Oe({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=Ye(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new le("Int cannot represent non-integer value: "+r(t));if(n>2147483647||n<-2147483648)throw new le("Int cannot represent non 32-bit signed integer value: "+r(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new le("Int cannot represent non-integer value: "+r(e));if(e>2147483647||e<-2147483648)throw new le("Int cannot represent non 32-bit signed integer value: "+e);return e},parseLiteral(e){if(e.kind!==_.INT)throw new le("Int cannot represent non-integer value: "+M(e),{nodes:e});const t=parseInt(e.value,10);if(t>2147483647||t<-2147483648)throw new le("Int cannot represent non 32-bit signed integer value: "+e.value,{nodes:e});return t}}),We=new Oe({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=Ye(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new le("Float cannot represent non numeric value: "+r(t));return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new le("Float cannot represent non numeric value: "+r(e));return e},parseLiteral(e){if(e.kind!==_.FLOAT&&e.kind!==_.INT)throw new le("Float cannot represent non numeric value: "+M(e),e);return parseFloat(e.value)}}),ze=new Oe({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=Ye(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new le("String cannot represent value: "+r(e))},parseValue(e){if("string"!=typeof e)throw new le("String cannot represent a non string value: "+r(e));return e},parseLiteral(e){if(e.kind!==_.STRING)throw new le("String cannot represent a non string value: "+M(e),{nodes:e});return e.value}}),Ke=new Oe({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=Ye(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new le("Boolean cannot represent a non boolean value: "+r(t))},parseValue(e){if("boolean"!=typeof e)throw new le("Boolean cannot represent a non boolean value: "+r(e));return e},parseLiteral(e){if(e.kind!==_.BOOLEAN)throw new le("Boolean cannot represent a non boolean value: "+M(e),{nodes:e});return e.value}}),Qe=new Oe({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=Ye(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new le("ID cannot represent value: "+r(e))},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new le("ID cannot represent value: "+r(e))},parseLiteral(e){if(e.kind!==_.STRING&&e.kind!==_.INT)throw new le("ID cannot represent a non-string and non-integer value: "+M(e),{nodes:e});return e.value}});function Ye(e){if($(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!$(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function Je(e,t){if(Te(t)){const n=Je(e,t.ofType);return(null==n?void 0:n.kind)===_.NULL?null:n}if(null===e)return{kind:_.NULL};if(void 0===e)return null;if(Ee(t)){const n=t.ofType;if(B(e)){const t=[];for(const r of e){const e=Je(r,n);null!=e&&t.push(e)}return{kind:_.LIST,values:t}}return Je(e,n)}if(be(t)){if(!$(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=Je(e[r.name],r.type);t&&n.push({kind:_.OBJECT_FIELD,name:{kind:_.NAME,value:r.name},value:t})}return{kind:_.OBJECT,fields:n}}if(we(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:_.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return Xe.test(e)?{kind:_.INT,value:e}:{kind:_.FLOAT,value:e}}if("string"==typeof n)return ye(t)?{kind:_.ENUM,value:n}:t===Qe&&Xe.test(n)?{kind:_.INT,value:n}:{kind:_.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${r(n)}.`)}c(!1,"Unexpected input type: "+r(t))}Object.freeze([ze,Ge,We,Ke,Qe]),n(Ye,"serializeObject"),n(Je,"astFromValue");const Xe=/^-?(?:0|[1-9][0-9]*)$/,Ze=new Ie({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:ze,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Se(new xe(new Se(nt))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new Se(nt),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:nt,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:nt,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Se(new xe(new Se(et))),resolve:e=>e.getDirectives()}})}),et=new Ie({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new Se(ze),resolve:e=>e.name},description:{type:ze,resolve:e=>e.description},isRepeatable:{type:new Se(Ke),resolve:e=>e.isRepeatable},locations:{type:new Se(new xe(new Se(tt))),resolve:e=>e.locations},args:{type:new Se(new xe(new Se(it))),args:{includeDeprecated:{type:Ke,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;return n?e.args:e.args.filter(e=>null==e.deprecationReason)}}})}),tt=new Ue({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:d.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:d.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:d.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:d.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:d.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:d.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:d.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:d.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:d.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:d.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:d.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:d.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:d.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:d.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:d.UNION,description:"Location adjacent to a union definition."},ENUM:{value:d.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:d.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:d.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:d.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),nt=new Ie({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Se(lt),resolve:e=>he(e)?at.SCALAR:me(e)?at.OBJECT:ge(e)?at.INTERFACE:ve(e)?at.UNION:ye(e)?at.ENUM:be(e)?at.INPUT_OBJECT:Ee(e)?at.LIST:Te(e)?at.NON_NULL:void c(!1,`Unexpected type: "${r(e)}".`)},name:{type:ze,resolve:e=>"name"in e?e.name:void 0},description:{type:ze,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:ze,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new xe(new Se(rt)),args:{includeDeprecated:{type:Ke,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;if(me(e)||ge(e)){const t=Object.values(e.getFields());return n?t:t.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new xe(new Se(nt)),resolve(e){if(me(e)||ge(e))return e.getInterfaces()}},possibleTypes:{type:new xe(new Se(nt)),resolve(e,t,n,r){let{schema:i}=r;if(Ce(e))return i.getPossibleTypes(e)}},enumValues:{type:new xe(new Se(ot)),args:{includeDeprecated:{type:Ke,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;if(ye(e)){const t=e.getValues();return n?t:t.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new xe(new Se(it)),args:{includeDeprecated:{type:Ke,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;if(be(e)){const t=Object.values(e.getFields());return n?t:t.filter(e=>null==e.deprecationReason)}}},ofType:{type:nt,resolve:e=>"ofType"in e?e.ofType:void 0}})}),rt=new Ie({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Se(ze),resolve:e=>e.name},description:{type:ze,resolve:e=>e.description},args:{type:new Se(new xe(new Se(it))),args:{includeDeprecated:{type:Ke,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;return n?e.args:e.args.filter(e=>null==e.deprecationReason)}},type:{type:new Se(nt),resolve:e=>e.type},isDeprecated:{type:new Se(Ke),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:ze,resolve:e=>e.deprecationReason}})}),it=new Ie({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Se(ze),resolve:e=>e.name},description:{type:ze,resolve:e=>e.description},type:{type:new Se(nt),resolve:e=>e.type},defaultValue:{type:ze,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=Je(n,t);return r?M(r):null}},isDeprecated:{type:new Se(Ke),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:ze,resolve:e=>e.deprecationReason}})}),ot=new Ie({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Se(ze),resolve:e=>e.name},description:{type:ze,resolve:e=>e.description},isDeprecated:{type:new Se(Ke),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:ze,resolve:e=>e.deprecationReason}})});let at;var st;(st=at||(at={})).SCALAR="SCALAR",st.OBJECT="OBJECT",st.INTERFACE="INTERFACE",st.UNION="UNION",st.ENUM="ENUM",st.INPUT_OBJECT="INPUT_OBJECT",st.LIST="LIST",st.NON_NULL="NON_NULL";const lt=new Ue({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:at.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:at.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:at.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:at.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:at.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:at.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:at.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:at.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),ut={name:"__schema",type:new Se(Ze),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,r)=>{let{schema:i}=r;return i},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};e.S=ut;const ct={name:"__type",type:nt,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Se(ze),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,t,n,r)=>{let{name:i}=t,{schema:o}=r;return o.getType(i)},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};e.T=ct;const dt={name:"__typename",type:new Se(ze),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,r)=>{let{parentType:i}=r;return i.name},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};e.a=dt,Object.freeze([Ze,et,tt,nt,rt,it,ot,lt])})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.f=n;var t=Object.defineProperty;function n(e,t){const n=[];let r=e;for(;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}t(n,"name",{value:"forEachState",configurable:!0})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(2),n(3),n(1),n(4)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Argument",{enumerable:!0,get:function(){return t.A}}),Object.defineProperty(e,"ArgumentIcon",{enumerable:!0,get:function(){return t._}}),Object.defineProperty(e,"Button",{enumerable:!0,get:function(){return t.at}}),Object.defineProperty(e,"ButtonGroup",{enumerable:!0,get:function(){return t.au}}),Object.defineProperty(e,"ChevronDownIcon",{enumerable:!0,get:function(){return t.$}}),Object.defineProperty(e,"ChevronLeftIcon",{enumerable:!0,get:function(){return t.a0}}),Object.defineProperty(e,"ChevronUpIcon",{enumerable:!0,get:function(){return t.a1}}),Object.defineProperty(e,"CloseIcon",{enumerable:!0,get:function(){return t.a2}}),Object.defineProperty(e,"CopyIcon",{enumerable:!0,get:function(){return t.a3}}),Object.defineProperty(e,"DOC_EXPLORER_PLUGIN",{enumerable:!0,get:function(){return t.G}}),Object.defineProperty(e,"DefaultValue",{enumerable:!0,get:function(){return t.D}}),Object.defineProperty(e,"DeprecatedArgumentIcon",{enumerable:!0,get:function(){return t.a4}}),Object.defineProperty(e,"DeprecatedEnumValueIcon",{enumerable:!0,get:function(){return t.a5}}),Object.defineProperty(e,"DeprecatedFieldIcon",{enumerable:!0,get:function(){return t.a6}}),Object.defineProperty(e,"DeprecationReason",{enumerable:!0,get:function(){return t.n}}),Object.defineProperty(e,"Dialog",{enumerable:!0,get:function(){return t.av}}),Object.defineProperty(e,"Directive",{enumerable:!0,get:function(){return t.o}}),Object.defineProperty(e,"DirectiveIcon",{enumerable:!0,get:function(){return t.a7}}),Object.defineProperty(e,"DocExplorer",{enumerable:!0,get:function(){return t.p}}),Object.defineProperty(e,"DocsFilledIcon",{enumerable:!0,get:function(){return t.a8}}),Object.defineProperty(e,"DocsIcon",{enumerable:!0,get:function(){return t.a9}}),Object.defineProperty(e,"EditorContext",{enumerable:!0,get:function(){return t.E}}),Object.defineProperty(e,"EditorContextProvider",{enumerable:!0,get:function(){return t.a}}),Object.defineProperty(e,"EnumValueIcon",{enumerable:!0,get:function(){return t.aa}}),Object.defineProperty(e,"ExecuteButton",{enumerable:!0,get:function(){return t.aE}}),Object.defineProperty(e,"ExecutionContext",{enumerable:!0,get:function(){return t.k}}),Object.defineProperty(e,"ExecutionContextProvider",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(e,"ExplorerContext",{enumerable:!0,get:function(){return t.q}}),Object.defineProperty(e,"ExplorerContextProvider",{enumerable:!0,get:function(){return t.r}}),Object.defineProperty(e,"ExplorerSection",{enumerable:!0,get:function(){return t.s}}),Object.defineProperty(e,"FieldDocumentation",{enumerable:!0,get:function(){return t.F}}),Object.defineProperty(e,"FieldIcon",{enumerable:!0,get:function(){return t.ab}}),Object.defineProperty(e,"FieldLink",{enumerable:!0,get:function(){return t.t}}),Object.defineProperty(e,"GraphiQLProvider",{enumerable:!0,get:function(){return t.L}}),Object.defineProperty(e,"HISTORY_PLUGIN",{enumerable:!0,get:function(){return t.J}}),Object.defineProperty(e,"HeaderEditor",{enumerable:!0,get:function(){return t.H}}),Object.defineProperty(e,"History",{enumerable:!0,get:function(){return t.y}}),Object.defineProperty(e,"HistoryContext",{enumerable:!0,get:function(){return t.z}}),Object.defineProperty(e,"HistoryContextProvider",{enumerable:!0,get:function(){return t.B}}),Object.defineProperty(e,"HistoryIcon",{enumerable:!0,get:function(){return t.ac}}),Object.defineProperty(e,"ImagePreview",{enumerable:!0,get:function(){return t.I}}),Object.defineProperty(e,"ImplementsIcon",{enumerable:!0,get:function(){return t.ad}}),Object.defineProperty(e,"KeyboardShortcutIcon",{enumerable:!0,get:function(){return t.ae}}),Object.defineProperty(e,"Listbox",{enumerable:!0,get:function(){return t.ax}}),Object.defineProperty(e,"MagnifyingGlassIcon",{enumerable:!0,get:function(){return t.af}}),Object.defineProperty(e,"MarkdownContent",{enumerable:!0,get:function(){return t.ay}}),Object.defineProperty(e,"Menu",{enumerable:!0,get:function(){return t.aw}}),Object.defineProperty(e,"MergeIcon",{enumerable:!0,get:function(){return t.ag}}),Object.defineProperty(e,"PenIcon",{enumerable:!0,get:function(){return t.ah}}),Object.defineProperty(e,"PlayIcon",{enumerable:!0,get:function(){return t.ai}}),Object.defineProperty(e,"PluginContext",{enumerable:!0,get:function(){return t.P}}),Object.defineProperty(e,"PlusIcon",{enumerable:!0,get:function(){return t.aj}}),Object.defineProperty(e,"PrettifyIcon",{enumerable:!0,get:function(){return t.ak}}),Object.defineProperty(e,"QueryEditor",{enumerable:!0,get:function(){return t.Q}}),Object.defineProperty(e,"ReloadIcon",{enumerable:!0,get:function(){return t.al}}),Object.defineProperty(e,"ResponseEditor",{enumerable:!0,get:function(){return t.R}}),Object.defineProperty(e,"RootTypeIcon",{enumerable:!0,get:function(){return t.am}}),Object.defineProperty(e,"SchemaContext",{enumerable:!0,get:function(){return t.M}}),Object.defineProperty(e,"SchemaContextProvider",{enumerable:!0,get:function(){return t.N}}),Object.defineProperty(e,"SchemaDocumentation",{enumerable:!0,get:function(){return t.S}}),Object.defineProperty(e,"Search",{enumerable:!0,get:function(){return t.v}}),Object.defineProperty(e,"SettingsIcon",{enumerable:!0,get:function(){return t.an}}),Object.defineProperty(e,"Spinner",{enumerable:!0,get:function(){return t.az}}),Object.defineProperty(e,"StarFilledIcon",{enumerable:!0,get:function(){return t.ao}}),Object.defineProperty(e,"StarIcon",{enumerable:!0,get:function(){return t.ap}}),Object.defineProperty(e,"StopIcon",{enumerable:!0,get:function(){return t.aq}}),Object.defineProperty(e,"StorageContext",{enumerable:!0,get:function(){return t.U}}),Object.defineProperty(e,"StorageContextProvider",{enumerable:!0,get:function(){return t.W}}),Object.defineProperty(e,"Tab",{enumerable:!0,get:function(){return t.aA}}),Object.defineProperty(e,"Tabs",{enumerable:!0,get:function(){return t.aB}}),Object.defineProperty(e,"ToolbarButton",{enumerable:!0,get:function(){return t.aD}}),Object.defineProperty(e,"ToolbarListbox",{enumerable:!0,get:function(){return t.aF}}),Object.defineProperty(e,"ToolbarMenu",{enumerable:!0,get:function(){return t.aG}}),Object.defineProperty(e,"Tooltip",{enumerable:!0,get:function(){return t.aC}}),Object.defineProperty(e,"TypeDocumentation",{enumerable:!0,get:function(){return t.T}}),Object.defineProperty(e,"TypeIcon",{enumerable:!0,get:function(){return t.ar}}),Object.defineProperty(e,"TypeLink",{enumerable:!0,get:function(){return t.w}}),Object.defineProperty(e,"UnStyledButton",{enumerable:!0,get:function(){return t.as}}),Object.defineProperty(e,"VariableEditor",{enumerable:!0,get:function(){return t.V}}),Object.defineProperty(e,"useAutoCompleteLeafs",{enumerable:!0,get:function(){return t.u}}),Object.defineProperty(e,"useCopyQuery",{enumerable:!0,get:function(){return t.b}}),Object.defineProperty(e,"useDragResize",{enumerable:!0,get:function(){return t.Z}}),Object.defineProperty(e,"useEditorContext",{enumerable:!0,get:function(){return t.d}}),Object.defineProperty(e,"useExecutionContext",{enumerable:!0,get:function(){return t.m}}),Object.defineProperty(e,"useExplorerContext",{enumerable:!0,get:function(){return t.x}}),Object.defineProperty(e,"useHeaderEditor",{enumerable:!0,get:function(){return t.e}}),Object.defineProperty(e,"useHistoryContext",{enumerable:!0,get:function(){return t.C}}),Object.defineProperty(e,"useMergeQuery",{enumerable:!0,get:function(){return t.f}}),Object.defineProperty(e,"usePluginContext",{enumerable:!0,get:function(){return t.K}}),Object.defineProperty(e,"usePrettifyEditors",{enumerable:!0,get:function(){return t.g}}),Object.defineProperty(e,"useQueryEditor",{enumerable:!0,get:function(){return t.h}}),Object.defineProperty(e,"useResponseEditor",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(e,"useSchemaContext",{enumerable:!0,get:function(){return t.O}}),Object.defineProperty(e,"useStorageContext",{enumerable:!0,get:function(){return t.X}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return t.Y}}),Object.defineProperty(e,"useVariableEditor",{enumerable:!0,get:function(){return t.j}})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QueryStore=void 0,e.QueryStore=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.key=e,this.storage=t,this.maxSize=n,this.items=this.fetchAll()}get length(){return this.items.length}contains(e){return this.items.some(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName)}edit(e){const t=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==t&&(this.items.splice(t,1,e),this.save())}delete(e){const t=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==t&&(this.items.splice(t,1),this.save())}fetchRecent(){return this.items[this.items.length-1]}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const t=[...this.items,e];this.maxSize&&t.length>this.maxSize&&t.shift();for(let e=0;e<5;e++){const e=this.storage.set(this.key,JSON.stringify({[this.key]:t}));if(e&&e.error){if(!e.isQuotaError||!this.maxSize)return;t.shift()}else this.items=t}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.s=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}r(i,"_mergeNamespaces");var o={exports:{}};!function(e){function t(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",(function(n){n=o(this,this.getCursor("start"),n);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var i=0;i<r.length;i++)if(r[i].head.line!=r[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var a=this.state.completionActive=new t(this,n);a.options.hint&&(e.signal(this,"startCompletion",this),a.update(!0))}})),e.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()})),r(t,"Completion");var n=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},i=window.cancelAnimationFrame||clearTimeout;function o(e,t,n){var r=e.options.hintOptions,i={};for(var o in p)i[o]=p[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}function a(e){return"string"==typeof e?e:e.text}function s(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var i=e.options.customKeys,o=i?{}:n;function a(e,i){var a;a="string"!=typeof i?r((function(e){return i(e,t)}),"bound"):n.hasOwnProperty(i)?n[i]:i,o[e]=a}if(r(a,"addBinding"),i)for(var s in i)i.hasOwnProperty(s)&&a(s,i[s]);var l=e.options.extraKeys;if(l)for(var s in l)l.hasOwnProperty(s)&&a(s,l[s]);return o}function l(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function u(t,n){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=t,this.data=n,this.picked=!1;var r=this,i=t.cm,o=i.getInputField().ownerDocument,u=o.defaultView||o.parentWindow,c=this.hints=o.createElement("ul");c.setAttribute("role","listbox"),c.setAttribute("aria-expanded","true"),c.id=this.id;var d=t.cm.options.theme;c.className="CodeMirror-hints "+d,this.selectedHint=n.selectedHint||0;for(var f=n.list,p=0;p<f.length;++p){var h=c.appendChild(o.createElement("li")),m=f[p],g="CodeMirror-hint"+(p!=this.selectedHint?"":" CodeMirror-hint-active");null!=m.className&&(g=m.className+" "+g),h.className=g,p==this.selectedHint&&h.setAttribute("aria-selected","true"),h.id=this.id+"-"+p,h.setAttribute("role","option"),m.render?m.render(h,n,m):h.appendChild(o.createTextNode(m.displayText||a(m))),h.hintId=p}var v=t.options.container||o.body,y=i.cursorCoords(t.options.alignWithWord?n.from:null),b=y.left,E=y.bottom,T=!0,w=0,C=0;if(v!==o.body){var x=-1!==["absolute","relative","fixed"].indexOf(u.getComputedStyle(v).position)?v:v.offsetParent,S=x.getBoundingClientRect(),N=o.body.getBoundingClientRect();w=S.left-N.left-x.scrollLeft,C=S.top-N.top-x.scrollTop}c.style.left=b-w+"px",c.style.top=E-C+"px";var k=u.innerWidth||Math.max(o.body.offsetWidth,o.documentElement.offsetWidth),_=u.innerHeight||Math.max(o.body.offsetHeight,o.documentElement.offsetHeight);v.appendChild(c),i.getInputField().setAttribute("aria-autocomplete","list"),i.getInputField().setAttribute("aria-owns",this.id),i.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var O,I=t.options.moveOnOverlap?c.getBoundingClientRect():new DOMRect,L=!!t.options.paddingForScrollbar&&c.scrollHeight>c.clientHeight+1;if(setTimeout((function(){O=i.getScrollInfo()})),I.bottom-_>0){var A=I.bottom-I.top;if(y.top-(y.bottom-I.top)-A>0)c.style.top=(E=y.top-A-C)+"px",T=!1;else if(A>_){c.style.height=_-5+"px",c.style.top=(E=y.bottom-I.top-C)+"px";var D=i.getCursor();n.from.ch!=D.ch&&(y=i.cursorCoords(D),c.style.left=(b=y.left-w)+"px",I=c.getBoundingClientRect())}}var M,R=I.right-k;if(L&&(R+=i.display.nativeBarWidth),R>0&&(I.right-I.left>k&&(c.style.width=k-5+"px",R-=I.right-I.left-k),c.style.left=(b=y.left-R-w)+"px"),L)for(var F=c.firstChild;F;F=F.nextSibling)F.style.paddingRight=i.display.nativeBarWidth+"px";i.addKeyMap(this.keyMap=s(t,{moveFocus:function(e,t){r.changeActive(r.selectedHint+e,t)},setFocus:function(e){r.changeActive(e)},menuSize:function(){return r.screenAmount()},length:f.length,close:function(){t.close()},pick:function(){r.pick()},data:n})),t.options.closeOnUnfocus&&(i.on("blur",this.onBlur=function(){M=setTimeout((function(){t.close()}),100)}),i.on("focus",this.onFocus=function(){clearTimeout(M)})),i.on("scroll",this.onScroll=function(){var e=i.getScrollInfo(),n=i.getWrapperElement().getBoundingClientRect();O||(O=i.getScrollInfo());var r=E+O.top-e.top,a=r-(u.pageYOffset||(o.documentElement||o.body).scrollTop);if(T||(a+=c.offsetHeight),a<=n.top||a>=n.bottom)return t.close();c.style.top=r+"px",c.style.left=b+O.left-e.left+"px"}),e.on(c,"dblclick",(function(e){var t=l(c,e.target||e.srcElement);t&&null!=t.hintId&&(r.changeActive(t.hintId),r.pick())})),e.on(c,"click",(function(e){var n=l(c,e.target||e.srcElement);n&&null!=n.hintId&&(r.changeActive(n.hintId),t.options.completeOnSingleClick&&r.pick())})),e.on(c,"mousedown",(function(){setTimeout((function(){i.focus()}),20)}));var P=this.getSelectedHintRange();return 0===P.from&&0===P.to||this.scrollToActive(),e.signal(n,"select",f[this.selectedHint],c.childNodes[this.selectedHint]),!0}function c(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}function d(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}function f(t,n){var i,o=t.getHelpers(n,"hint");if(o.length){var a=r((function(e,t,n){var i=c(e,o);function a(r){if(r==i.length)return t(null);d(i[r],e,n,(function(e){e&&e.list.length>0?t(e):a(r+1)}))}r(a,"run"),a(0)}),"resolved");return a.async=!0,a.supportsSelection=!0,a}return(i=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:i})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],i=this;this.cm.operation((function(){r.hint?r.hint(i.cm,t,r):i.cm.replaceRange(a(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),i.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(i(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),r=this.cm.getLine(t.line);if(t.line!=this.startPos.line||r.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(r.charAt(t.ch-1)))this.close();else{var o=this;this.debounce=n((function(){o.update()})),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;d(this.options.hint,this.cm,this.options,(function(r){t.tick==n&&t.finishUpdate(r,e)}))}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new u(this,t),e.signal(t,"shown")))}},r(o,"parseOptions"),r(a,"getText"),r(s,"buildKeyMap"),r(l,"getHintElement"),r(u,"Widget"),u.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm.getInputField();e.removeAttribute("aria-activedescendant"),e.removeAttribute("aria-owns");var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,n){if(t>=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var r=this.hints.childNodes[this.selectedHint];r&&(r.className=r.className.replace(" CodeMirror-hint-active",""),r.removeAttribute("aria-selected")),(r=this.hints.childNodes[this.selectedHint=t]).className+=" CodeMirror-hint-active",r.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",r.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],r)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],r=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-r.offsetTop:n.offsetTop+n.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},r(c,"applicableHelpers"),r(d,"fetchHints"),r(f,"resolveAutoHints"),e.registerHelper("hint","auto",{resolve:f}),e.registerHelper("hint","fromList",(function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var l=[],u=0;u<n.words.length;u++){var c=n.words[u];c.slice(0,r.length)==r&&l.push(c)}if(l.length)return{list:l,from:a,to:s}})),e.commands.autocomplete=e.showHint;var p={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}(t.a.exports);var a=i({__proto__:null,default:o.exports},[o.exports]);e.s=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.m=e.a=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}r(i,"_mergeNamespaces");var o={exports:{}};e.a=o,function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,i={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function o(e){return e&&e.bracketRegex||/[(){}[\]]/}function a(e,t,r){var a=e.getLineHandle(t.line),l=t.ch-1,u=r&&r.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=o(r),d=!u&&l>=0&&c.test(a.text.charAt(l))&&i[a.text.charAt(l)]||c.test(a.text.charAt(l+1))&&i[a.text.charAt(++l)];if(!d)return null;var f=">"==d.charAt(1)?1:-1;if(r&&r.strict&&f>0!=(l==t.ch))return null;var p=e.getTokenTypeAt(n(t.line,l+1)),h=s(e,n(t.line,l+(f>0?1:0)),f,p,r);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==d.charAt(0),forward:f>0}}function s(e,t,r,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],d=o(s),f=r>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),p=t.line;p!=f;p+=r){var h=e.getLine(p);if(h){var m=r>0?0:h.length-1,g=r>0?h.length:-1;if(!(h.length>l))for(p==t.line&&(m=t.ch-(r<0?1:0));m!=g;m+=r){var v=h.charAt(m);if(d.test(v)&&(void 0===a||(e.getTokenTypeAt(n(p,m+1))||"")==(a||""))){var y=i[v];if(y&&">"==y.charAt(1)==r>0)c.push(v);else{if(!c.length)return{pos:n(p,m),ch:v};c.pop()}}}}}return p-r!=(r>0?e.lastLine():e.firstLine())&&null}function l(e,i,o){for(var s=e.state.matchBrackets.maxHighlightLineLength||1e3,l=o&&o.highlightNonMatching,u=[],c=e.listSelections(),d=0;d<c.length;d++){var f=c[d].empty()&&a(e,c[d].head,o);if(f&&(f.match||!1!==l)&&e.getLine(f.from.line).length<=s){var p=f.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";u.push(e.markText(f.from,n(f.from.line,f.from.ch+1),{className:p})),f.to&&e.getLine(f.to.line).length<=s&&u.push(e.markText(f.to,n(f.to.line,f.to.ch+1),{className:p}))}}if(u.length){t&&e.state.focused&&e.focus();var h=r((function(){e.operation((function(){for(var e=0;e<u.length;e++)u[e].clear()}))}),"clear");if(!i)return h;setTimeout(h,800)}}function u(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=l(e,!1,e.state.matchBrackets)}))}function c(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}r(o,"bracketRegex"),r(a,"findMatchingBracket"),r(s,"scanForBracket"),r(l,"matchBrackets"),r(u,"doMatchBrackets"),r(c,"clearHighlighted"),e.defineOption("matchBrackets",!1,(function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",u),t.off("focus",u),t.off("blur",c),c(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",u),t.on("focus",u),t.on("blur",c))})),e.defineExtension("matchBrackets",(function(){l(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),a(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return s(this,e,t,n,r)}))}(t.a.exports);var a=i({__proto__:null,default:o.exports},[o.exports]);e.m=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.b=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}r(i,"_mergeNamespaces");var o={exports:{}};!function(e){function t(t){return function(n,i){var o=i.line,a=n.getLine(o);function s(t){for(var r,s=i.ch,l=0;;){var u=s<=0?-1:a.lastIndexOf(t[0],s-1);if(-1!=u){if(1==l&&u<i.ch)break;if(r=n.getTokenTypeAt(e.Pos(o,u+1)),!/^(comment|string)/.test(r))return{ch:u+1,tokenType:r,pair:t};s=u-1}else{if(1==l)break;l=1,s=a.length}}}function l(t){var r,i,a=1,s=n.lastLine(),l=t.ch;e:for(var u=o;u<=s;++u)for(var c=n.getLine(u),d=u==o?l:0;;){var f=c.indexOf(t.pair[0],d),p=c.indexOf(t.pair[1],d);if(f<0&&(f=c.length),p<0&&(p=c.length),(d=Math.min(f,p))==c.length)break;if(n.getTokenTypeAt(e.Pos(u,d+1))==t.tokenType)if(d==f)++a;else if(!--a){r=u,i=d;break e}++d}return null==r||o==r?null:{from:e.Pos(o,l),to:e.Pos(r,i)}}r(s,"findOpening"),r(l,"findRange");for(var u=[],c=0;c<t.length;c++){var d=s(t[c]);d&&u.push(d)}for(u.sort((function(e,t){return e.ch-t.ch})),c=0;c<u.length;c++){var f=l(u[c]);if(f)return f}return null}}r(t,"bracketFolding"),e.registerHelper("fold","brace",t([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",t([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",(function(t,n){function i(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}r(i,"hasImport");var o,a=n.line,s=i(a);if(!s||i(a-1)||(o=i(a-2))&&o.end.line==a-1)return null;for(var l=s.end;;){var u=i(l.line+1);if(null==u)break;l=u.end}return{from:t.clipPos(e.Pos(a,s.startCh+1)),to:l}})),e.registerHelper("fold","include",(function(t,n){function i(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}r(i,"hasInclude");var o=n.line,a=i(o);if(null==a||null!=i(o-1))return null;for(var s=o;null!=i(s+1);)++s;return{from:e.Pos(o,a+1),to:t.clipPos(e.Pos(s))}}))}(t.a.exports);var a=i({__proto__:null,default:o.exports},[o.exports]);e.b=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.f=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}r(i,"_mergeNamespaces");var o={exports:{}};!function(e){function t(t,i,a,s){if(a&&a.call){var l=a;a=null}else l=o(t,a,"rangeFinder");"number"==typeof i&&(i=e.Pos(i,0));var u=o(t,a,"minFoldSize");function c(e){var n=l(t,i);if(!n||n.to.line-n.from.line<u)return null;if("fold"===s)return n;for(var r=t.findMarksAt(n.from),o=0;o<r.length;++o)if(r[o].__isFold){if(!e)return null;n.cleared=!0,r[o].clear()}return n}r(c,"getRange");var d=c(!0);if(o(t,a,"scanUp"))for(;!d&&i.line>t.firstLine();)i=e.Pos(i.line-1,0),d=c(!1);if(d&&!d.cleared&&"unfold"!==s){var f=n(t,a,d);e.on(f,"mousedown",(function(t){p.clear(),e.e_preventDefault(t)}));var p=t.markText(d.from,d.to,{replacedWith:f,clearOnEnter:o(t,a,"clearOnEnter"),__isFold:!0});p.on("clear",(function(n,r){e.signal(t,"unfold",t,n,r)})),e.signal(t,"fold",t,d.from,d.to)}}function n(e,t,n){var r=o(e,t,"widget");if("function"==typeof r&&(r=r(n.from,n.to)),"string"==typeof r){var i=document.createTextNode(r);(r=document.createElement("span")).appendChild(i),r.className="CodeMirror-foldmarker"}else r&&(r=r.cloneNode(!0));return r}r(t,"doFold"),r(n,"makeWidget"),e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,r){t(this,e,n,r)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0})),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),{scanUp:!1},"unfold")},e.commands.foldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"fold")}))},e.commands.unfoldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"unfold")}))},e.registerHelper("fold","combine",(function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}})),e.registerHelper("fold","auto",(function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}}));var i={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function o(e,t,n){if(t&&void 0!==t[n])return t[n];var r=e.options.foldOptions;return r&&void 0!==r[n]?r[n]:i[n]}e.defineOption("foldOptions",null),r(o,"getOption"),e.defineExtension("foldOption",(function(e,t){return o(this,e,t)}))}(t.a.exports),function(e){e.defineOption("foldGutter",!1,(function(t,r,o){o&&o!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",c),t.off("changes",d),t.off("viewportChange",f),t.off("fold",p),t.off("unfold",p),t.off("swapDoc",d)),r&&(t.state.foldGutter=new n(i(r)),u(t),t.on("gutterClick",c),t.on("changes",d),t.on("viewportChange",f),t.on("fold",p),t.on("unfold",p),t.on("swapDoc",d))}));var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function i(e){return!0===e&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function o(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i<r.length;++i)if(r[i].__isFold){var o=r[i].find(-1);if(o&&o.line===n)return r[i]}}function a(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function s(e,n,r){var i=e.state.foldGutter.options,s=n-1,u=e.foldOption(i,"minFoldSize"),c=e.foldOption(i,"rangeFinder"),d="string"==typeof i.indicatorFolded&&l(i.indicatorFolded),f="string"==typeof i.indicatorOpen&&l(i.indicatorOpen);e.eachLine(n,r,(function(n){++s;var r=null,l=n.gutterMarkers;if(l&&(l=l[i.gutter]),o(e,s)){if(d&&l&&d.test(l.className))return;r=a(i.indicatorFolded)}else{var p=t(s,0),h=c&&c(e,p);if(h&&h.to.line-h.from.line>=u){if(f&&l&&f.test(l.className))return;r=a(i.indicatorOpen)}}(r||l)&&e.setGutterMarker(n,i.gutter,r)}))}function l(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function u(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){s(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function c(e,n,r){var i=e.state.foldGutter;if(i){var a=i.options;if(r==a.gutter){var s=o(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function d(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){u(e)}),n.foldOnChangeTimeSpan||600)}}function f(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?u(e):e.operation((function(){n.from<t.from&&(s(e,n.from,t.from),t.from=n.from),n.to>t.to&&(s(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function p(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&s(e,r,r+1)}}r(n,"State"),r(i,"parseOptions"),r(o,"isFolded"),r(a,"marker"),r(s,"updateFoldInfo"),r(l,"classTest"),r(u,"updateInViewport"),r(c,"onGutterClick"),r(d,"onChange"),r(f,"onViewportChange"),r(p,"onFold")}(t.a.exports);var a=i({__proto__:null,default:o.exports},[o.exports]);e.f=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0),n(7)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.j=void 0;var r=Object.defineProperty,i=(e,t)=>r(e,"name",{value:t,configurable:!0});function o(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}i(o,"_mergeNamespaces");var a={exports:{}};!function(e){function t(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function n(e){return e.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>"}function r(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.defineOption("search",{bottom:!1}),i(t,"dialog"),i(n,"getJumpDialog"),i(r,"interpretLine"),e.commands.jumpToLine=function(e){var i=e.getCursor();t(e,n(e),e.phrase("Jump to line:"),i.line+1+":"+i.ch,(function(t){var n;if(t)if(n=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(t))e.setCursor(r(e,n[1]),Number(n[2]));else if(n=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(t)){var o=Math.round(e.lineCount()*Number(n[1])/100);/^[-+]/.test(n[1])&&(o=i.line+o+1),e.setCursor(o-1,i.ch)}else(n=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(t))&&e.setCursor(r(e,n[1]),i.ch)}))},e.keyMap.default["Alt-G"]="jumpToLine"}(t.a.exports,n.a.exports);var s=o({__proto__:null,default:a.exports},[a.exports]);e.j=s})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0),n(6),n(14)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.s=void 0;var i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}o(a,"_mergeNamespaces");var s={exports:{}};!function(e){var t=e.commands,n=e.Pos;function r(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,u=l,c=i<0?0:o.length,d=0;u!=c;u+=i,d++){var f=o.charAt(i<0?u-1:u),p="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==p&&f.toUpperCase()==f&&(p="W"),"start"==s)"o"!=p?(s="in",a=p):l=u+i;else if("in"==s&&a!=p){if("w"==a&&"W"==p&&i<0&&u--,"W"==a&&"w"==p&&i>0){if(u==l+1){a="w";continue}u--}break}}return n(r.line,u)}function i(e,t){e.extendSelectionsBy((function(n){return e.display.shift||e.doc.extend||n.empty()?r(e.doc,n.head,t):t<0?n.from():n.to()}))}function a(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a<e;a++){var s=t.listSelections()[a].head;if(!(s.line<=o)){var l=n(s.line+(r?0:1),0);t.replaceRange("\n",l,null,"+insertLine"),t.indentLine(l.line,null,!0),i.push({head:l,anchor:l}),o=s.line+1}}t.setSelections(i)})),t.execCommand("indentAuto")}function s(t,r){for(var i=r.ch,o=i,a=t.getLine(r.line);i&&e.isWordChar(a.charAt(i-1));)--i;for(;o<a.length&&e.isWordChar(a.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:a.slice(i,o)}}function l(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],a=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),s=e.findPosV(o.head,t,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,s.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var l={anchor:a,head:s};r.push(o),r.push(l)}e.setSelections(r)}function u(t,n,r){for(var i=0;i<t.length;i++)if(0==e.cmpPos(t[i].from(),n)&&0==e.cmpPos(t[i].to(),r))return!0;return!1}function c(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],s=a.head,l=t.scanForBracket(s,-1);if(!l)return!1;for(;;){var u=t.scanForBracket(s,1);if(!u)return!1;if(u.ch=="(){}[]".charAt("(){}[]".indexOf(l.ch)+1)){var c=n(l.pos.line,l.pos.ch+1);if(0!=e.cmpPos(c,a.from())||0!=e.cmpPos(u.pos,a.to())){i.push({anchor:c,head:u.pos});break}if(!(l=t.scanForBracket(l.pos,-1)))return!1}s=n(u.pos.line,u.pos.ch+1)}}return t.setSelections(i),!0}function d(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function f(t,r,i){if(t.isReadOnly())return e.Pass;for(var o,a=t.listSelections(),s=[],l=0;l<a.length;l++){var u=a[l];if(!u.empty()){for(var c=u.from().line,d=u.to().line;l<a.length-1&&a[l+1].from().line==d;)d=a[++l].to().line;a[l].to().ch||d--,s.push(c,d)}}s.length?o=!0:s.push(t.firstLine(),t.lastLine()),t.operation((function(){for(var e=[],a=0;a<s.length;a+=2){var l=s[a],u=s[a+1],c=n(l,0),d=n(u),f=t.getRange(c,d,!1);r?f.sort((function(e,t){return e<t?-i:e==t?0:i})):f.sort((function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-i:e==t?0:i})),t.replaceRange(f,c,d),o&&e.push({anchor:c,head:n(u+1,0)})}o&&t.setSelections(e,0)}))}function p(t,n){t.operation((function(){for(var r=t.listSelections(),i=[],o=[],a=0;a<r.length;a++)(u=r[a]).empty()?(i.push(a),o.push("")):o.push(n(t.getRange(u.from(),u.to())));var l;for(t.replaceSelections(o,"around","case"),a=i.length-1;a>=0;a--){var u=r[i[a]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=s(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}}))}function h(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=s(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function m(e,t){var r=h(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}o(r,"findPosSubword"),o(i,"moveSubword"),t.goSubwordLeft=function(e){i(e,-1)},t.goSubwordRight=function(e){i(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++)for(var o=t[i].from(),a=t[i].to(),s=o.line;s<=a.line;++s)a.line>o.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},o(a,"insertLine"),t.insertLineAfter=function(e){return a(e,!1)},t.insertLineBefore=function(e){return a(e,!0)},o(s,"wordAt"),t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),o=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var a=s(t,r);if(!a.word)return;t.setSelection(a.from,a.to),o=!0}else{var l=t.getRange(r,i),c=o?new RegExp("\\b"+l+"\\b"):l,d=t.getSearchCursor(c,i),f=d.findNext();if(f||(f=(d=t.getSearchCursor(c,n(t.firstLine(),0))).findNext()),!f||u(t.listSelections(),d.from(),d.to()))return;t.addSelection(d.from(),d.to())}o&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter((function(e){return e.anchor!=r||e.head!=i})))},o(l,"addCursorToSelection"),t.addCursorToPrevLine=function(e){l(e,-1)},t.addCursorToNextLine=function(e){l(e,1)},o(u,"isSelectedRange"),o(c,"selectBetweenBrackets"),t.selectScope=function(e){c(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!c(t))return e.Pass},o(d,"puncType"),t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,d(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,d(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;s<r.length;s++){var l=r[s],u=l.from().line-1,c=l.to().line;a.push({anchor:n(l.anchor.line-1,l.anchor.ch),head:n(l.head.line-1,l.head.ch)}),0!=l.to().ch||l.empty()||--c,u>o?i.push(u,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],s=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,u=s.from().line;0!=s.to().ch||s.empty()||l--,l<o?i.push(l,u):i.length&&(i[i.length-1]=u),o=u}t.operation((function(){for(var e=i.length-2;e>=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){for(var o=t[i],a=o.from(),s=a.line,l=o.to().line;i<t.length-1&&t[i+1].from().line==l;)l=t[++i].to().line;r.push({start:s,end:l,anchor:!o.empty()&&a})}e.operation((function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var a,s=r[o],l=s.anchor&&n(s.anchor.line-t,s.anchor.ch),u=s.start;u<=s.end;u++){var c=u-t;u==s.end&&(a=n(c,e.getLine(c).length+1)),c<e.lastLine()&&(e.replaceRange(" ",n(c),n(c+1,/^\s*/.exec(e.getLine(c+1))[0].length)),++t)}i.push({anchor:l||a,head:a})}e.setSelections(i,0)}))},t.duplicateLine=function(e){e.operation((function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()}))},o(f,"sortLines"),t.sortLines=function(e){f(e,!0,1)},t.reverseSortLines=function(e){f(e,!0,-1)},t.sortLinesInsensitive=function(e){f(e,!1,1)},t.reverseSortLinesInsensitive=function(e){f(e,!1,-1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),a=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),s=0;s<a.length;s++)if(a[s].sublimeBookmark){a[s].clear();for(var l=0;l<n.length;l++)n[l]==a[s]&&n.splice(l--,1);break}s==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},o(p,"modifyWordOrSelection"),t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation((function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),u=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var c=new n(a.line,e.findColumn(s,l-i,i));c.ch!=a.ch&&(u=c)}t.replaceRange("",u,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){p(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){p(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},o(h,"getTarget"),o(m,"findAndGoTo"),t.findUnder=function(e){m(e,!0)},t.findUnderPrevious=function(e){m(e,!1)},t.findAllUnder=function(e){var t=h(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var g=e.keyMap;g.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(g.macSublime),g.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(g.pcSublime);var v=g.default==g.macDefault;g.sublime=v?g.macSublime:g.pcSublime}(t.a.exports,n.a.exports,r.a.exports);var l=a({__proto__:null,default:s.exports},[s.exports]);e.s=l})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0),n(6),n(7)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.s=void 0;var i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}o(a,"_mergeNamespaces");var s={exports:{}};!function(e){function t(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}function n(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function r(e){return e.state.search||(e.state.search=new n)}function i(e){return"string"==typeof e&&e==e.toLowerCase()}function a(e,t,n){return e.getSearchCursor(t,n,{caseFold:i(t),multiline:!0})}function s(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){m(e)},onKeyDown:i,bottom:e.options.search.bottom})}function l(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function u(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}function c(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function d(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=c(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function f(e,n,r){n.queryText=r,n.query=d(r),e.removeOverlay(n.overlay,i(n.query)),n.overlay=t(n.query,i(n.query)),e.addOverlay(n.overlay),e.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=e.showMatchesOnScrollbar(n.query,i(n.query)))}function p(t,n,i,a){var u=r(t);if(u.query)return h(t,n);var c=t.getSelection()||u.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),i&&t.openDialog){var d=null,p=o((function(n,r){e.e_stop(r),n&&(n!=u.queryText&&(f(t,u,n),u.posFrom=u.posTo=t.getCursor()),d&&(d.style.opacity=1),h(t,r.shiftKey,(function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((d=r).style.opacity=.4)})))}),"searchNext");s(t,v(t),c,p,(function(n,i){var o=e.keyName(n),a=t.getOption("extraKeys"),s=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(n),f(t,r(t),i),t.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(n),p(i,n))})),a&&c&&(f(t,u,c),h(t,n))}else l(t,v(t),"Search for:",c,(function(e){e&&!u.query&&t.operation((function(){f(t,u,e),u.posFrom=u.posTo=t.getCursor(),h(t,n)}))}))}function h(t,n,i){t.operation((function(){var o=r(t),s=a(t,o.query,n?o.posFrom:o.posTo);(s.find(n)||(s=a(t,o.query,n?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(n))&&(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),o.posFrom=s.from(),o.posTo=s.to(),i&&i(s.from(),s.to()))}))}function m(e){e.operation((function(){var t=r(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function g(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var i=2;i<arguments.length;i++){var o=arguments[i];n.appendChild("string"==typeof o?document.createTextNode(o):o)}return n}function v(e){return g("",null,g("span",{className:"CodeMirror-search-label"},e.phrase("Search:"))," ",g("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",g("span",{style:"color: #888",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function y(e){return g("",null," ",g("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",g("span",{style:"color: #888",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function b(e){return g("",null,g("span",{className:"CodeMirror-search-label"},e.phrase("With:"))," ",g("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function E(e){return g("",null,g("span",{className:"CodeMirror-search-label"},e.phrase("Replace?"))," ",g("button",{},e.phrase("Yes"))," ",g("button",{},e.phrase("No"))," ",g("button",{},e.phrase("All"))," ",g("button",{},e.phrase("Stop")))}function T(e,t,n){e.operation((function(){for(var r=a(e,t);r.findNext();)if("string"!=typeof t){var i=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,(function(e,t){return i[t]})))}else r.replace(n)}))}function w(e,t){if(!e.getOption("readOnly")){var n=e.getSelection()||r(e).lastQuery,i=t?e.phrase("Replace all:"):e.phrase("Replace:"),s=g("",null,g("span",{className:"CodeMirror-search-label"},i),y(e));l(e,s,i,n,(function(n){n&&(n=d(n),l(e,b(e),e.phrase("Replace with:"),"",(function(r){if(r=c(r),t)T(e,n,r);else{m(e);var i=a(e,n,e.getCursor("from")),s=o((function(){var t,o=i.from();!(t=i.findNext())&&(i=a(e,n),!(t=i.findNext())||o&&i.from().line==o.line&&i.from().ch==o.ch)||(e.setSelection(i.from(),i.to()),e.scrollIntoView({from:i.from(),to:i.to()}),u(e,E(e),e.phrase("Replace?"),[function(){l(t)},s,function(){T(e,n,r)}]))}),"advance"),l=o((function(e){i.replace("string"==typeof n?r:r.replace(/\$(\d)/g,(function(t,n){return e[n]}))),s()}),"doReplace");s()}})))}))}}e.defineOption("search",{bottom:!1}),o(t,"searchOverlay"),o(n,"SearchState"),o(r,"getSearchState"),o(i,"queryCaseInsensitive"),o(a,"getSearchCursor"),o(s,"persistentDialog"),o(l,"dialog"),o(u,"confirmDialog"),o(c,"parseString"),o(d,"parseQuery"),o(f,"startSearch"),o(p,"doSearch"),o(h,"findNext"),o(m,"clearSearch"),o(g,"el"),o(v,"getQueryDialog"),o(y,"getReplaceQueryDialog"),o(b,"getReplacementQueryDialog"),o(E,"getDoReplaceConfirm"),o(T,"replaceAll"),o(w,"replace"),e.commands.find=function(e){m(e),p(e)},e.commands.findPersistent=function(e){m(e),p(e,!1,!0)},e.commands.findPersistentNext=function(e){p(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){p(e,!0,!0,!0)},e.commands.findNext=p,e.commands.findPrev=function(e){p(e,!0)},e.commands.clearSearch=m,e.commands.replace=w,e.commands.replaceAll=function(e){w(e,!0)}}(t.a.exports,n.a.exports,r.a.exports);var l=a({__proto__:null,default:s.exports},[s.exports]);e.s=l})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.R=e.P=e.C=void 0;var t=Object.defineProperty,n=(e,n)=>t(e,"name",{value:n,configurable:!0});class r{constructor(e){var t=this;this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=null,o=null;return"string"==typeof e?(o=new RegExp(e,r?"i":"g").test(t._sourceText.substr(t._pos,e.length)),i=e):e instanceof RegExp&&(o=t._sourceText.slice(t._pos).match(e),i=null==o?void 0:o[0]),!(null==o||!("string"==typeof e||o instanceof Array&&t._sourceText.startsWith(o[0],t._pos)))&&(n&&(t._start=t._pos,i&&i.length&&(t._pos+=i.length)),o)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}e.C=r,n(r,"CharacterStream");class i{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new o(e,t)}setEnd(e,t){this.end=new o(e,t)}}e.R=i,n(i,"Range");class o{constructor(e,t){this.lessThanOrEqualTo=e=>this.line<e.line||this.line===e.line&&this.character<=e.character,this.line=e,this.character=t}setLine(e){this.line=e}setCharacter(e){this.character=e}}e.P=o,n(o,"Position")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(1),n(8),n(9)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.a=u,e.b=c,e.c=d,e.d=f,e.e=p,e.g=a;var i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,n){const i={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,r.f)(n,n=>{var r,o;switch(n.kind){case"Query":case"ShortQuery":i.type=e.getQueryType();break;case"Mutation":i.type=e.getMutationType();break;case"Subscription":i.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":n.type&&(i.type=e.getType(n.type));break;case"Field":case"AliasedField":i.fieldDef=i.type&&n.name?s(e,i.parentType,n.name):null,i.type=null===(r=i.fieldDef)||void 0===r?void 0:r.type;break;case"SelectionSet":i.parentType=i.type?(0,t.getNamedType)(i.type):null;break;case"Directive":i.directiveDef=n.name?e.getDirective(n.name):null;break;case"Arguments":const a=n.prevState?"Field"===n.prevState.kind?i.fieldDef:"Directive"===n.prevState.kind?i.directiveDef:"AliasedField"===n.prevState.kind?n.prevState.name&&s(e,i.parentType,n.prevState.name):null:null;i.argDefs=a?a.args:null;break;case"Argument":if(i.argDef=null,i.argDefs)for(let e=0;e<i.argDefs.length;e++)if(i.argDefs[e].name===n.name){i.argDef=i.argDefs[e];break}i.inputType=null===(o=i.argDef)||void 0===o?void 0:o.type;break;case"EnumValue":const u=i.inputType?(0,t.getNamedType)(i.inputType):null;i.enumValue=u instanceof t.GraphQLEnumType?l(u.getValues(),e=>e.value===n.name):null;break;case"ListValue":const c=i.inputType?(0,t.getNullableType)(i.inputType):null;i.inputType=c instanceof t.GraphQLList?c.ofType:null;break;case"ObjectValue":const d=i.inputType?(0,t.getNamedType)(i.inputType):null;i.objectFieldDefs=d instanceof t.GraphQLInputObjectType?d.getFields():null;break;case"ObjectField":const f=n.name&&i.objectFieldDefs?i.objectFieldDefs[n.name]:null;i.inputType=null==f?void 0:f.type;break;case"NamedType":i.type=n.name?e.getType(n.name):null}}),i}function s(e,r,i){return i===n.S.name&&e.getQueryType()===r?n.S:i===n.T.name&&e.getQueryType()===r?n.T:i===n.a.name&&(0,t.isCompositeType)(r)?n.a:r&&r.getFields?r.getFields()[i]:void 0}function l(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}function u(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:h(e.fieldDef)?null:e.parentType}}function c(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}function d(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:h(e.fieldDef)?null:e.parentType}}function f(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?(0,t.getNamedType)(e.inputType):void 0}}function p(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}function h(e){return"__"===e.name.slice(0,2)}o(a,"getTypeInfo"),o(s,"getFieldDef"),o(l,"find"),o(u,"getFieldReference"),o(c,"getDirectiveReference"),o(d,"getArgumentReference"),o(f,"getEnumValueReference"),o(p,"getTypeReference"),o(h,"isMetaField")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(0),n(2),n(3),n(1),n(4)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";var o=Object.defineProperty,a=(e,t)=>o(e,"name",{value:t,configurable:!0});function s(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}function l(e){const t=e.state.info.options;return(null==t?void 0:t.hoverTime)||500}function u(t,n){const r=t.state.info,i=n.target||n.srcElement;if(!(i instanceof HTMLElement))return;if("SPAN"!==i.nodeName||void 0!==r.hoverTimeout)return;const o=i.getBoundingClientRect(),s=a((function(){clearTimeout(r.hoverTimeout),r.hoverTimeout=setTimeout(d,f)}),"onMouseMove"),u=a((function(){e.C.off(document,"mousemove",s),e.C.off(t.getWrapperElement(),"mouseout",u),clearTimeout(r.hoverTimeout),r.hoverTimeout=void 0}),"onMouseOut"),d=a((function(){e.C.off(document,"mousemove",s),e.C.off(t.getWrapperElement(),"mouseout",u),r.hoverTimeout=void 0,c(t,o)}),"onHover"),f=l(t);r.hoverTimeout=setTimeout(d,f),e.C.on(document,"mousemove",s),e.C.on(t.getWrapperElement(),"mouseout",u)}function c(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),r=e.state.info.options,i=r.render||e.getHelper(n,"info");if(i){const o=e.getTokenAt(n,!0);if(o){const a=i(o,r,e,n);a&&d(e,t,a)}}}function d(t,n,r){const i=document.createElement("div");i.className="CodeMirror-info",i.appendChild(r),document.body.appendChild(i);const o=i.getBoundingClientRect(),s=window.getComputedStyle(i),l=o.right-o.left+parseFloat(s.marginLeft)+parseFloat(s.marginRight),u=o.bottom-o.top+parseFloat(s.marginTop)+parseFloat(s.marginBottom);let c=n.bottom;u>window.innerHeight-n.bottom-15&&n.top>window.innerHeight-n.bottom&&(c=n.top-u),c<0&&(c=n.bottom);let d,f=Math.max(0,window.innerWidth-l-15);f>n.left&&(f=n.left),i.style.opacity="1",i.style.top=c+"px",i.style.left=f+"px";const p=a((function(){clearTimeout(d)}),"onMouseOverPopup"),h=a((function(){clearTimeout(d),d=setTimeout(m,200)}),"onMouseOut"),m=a((function(){e.C.off(i,"mouseover",p),e.C.off(i,"mouseout",h),e.C.off(t.getWrapperElement(),"mouseout",h),i.style.opacity?(i.style.opacity="0",setTimeout(()=>{i.parentNode&&i.parentNode.removeChild(i)},600)):i.parentNode&&i.parentNode.removeChild(i)}),"hidePopup");e.C.on(i,"mouseover",p),e.C.on(i,"mouseout",h),e.C.on(t.getWrapperElement(),"mouseout",h)}e.C.defineOption("info",!1,(t,n,r)=>{if(r&&r!==e.C.Init){const n=t.state.info.onMouseOver;e.C.off(t.getWrapperElement(),"mouseover",n),clearTimeout(t.state.info.hoverTimeout),delete t.state.info}if(n){const r=t.state.info=s(n);r.onMouseOver=u.bind(null,t),e.C.on(t.getWrapperElement(),"mouseover",r.onMouseOver)}}),a(s,"createState"),a(l,"getHoverTime"),a(u,"onMouseOver"),a(c,"onMouseHover"),a(d,"showPopup")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(10),n(24),n(1),n(41),n(42),n(43),n(44),n(45),n(46)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,s,l,u){"use strict";function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=d(t),r=d(r),o.GraphiQL.createFetcher=n.createGraphiQLFetcher,o.GraphiQL.GraphQL=r,o.GraphiQL.React=t;var f=o.GraphiQL;e.default=f})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(25),n(26),n(33),n(34),n(38)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))})),Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))})),Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))})),Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===i[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))})),Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===o[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e){return"object"==typeof e&&null!==e&&"subscribe"in e&&"function"==typeof e.subscribe}function n(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}Object.defineProperty(e,"__esModule",{value:!0}),e.fetcherReturnToPromise=function(e){return Promise.resolve(e).then(e=>{return n(e)?(i=e,new Promise((e,t)=>{var n;const r=null===(n=("return"in i?i:i[Symbol.asyncIterator]()).return)||void 0===n?void 0:n.bind(i);("next"in i?i:i[Symbol.asyncIterator]()).next.bind(i)().then(t=>{e(t.value),null==r||r()}).catch(e=>{t(e)})})):t(e)?(r=e,new Promise((e,t)=>{const n=r.subscribe({next:t=>{e(t),n.unsubscribe()},error:t,complete:()=>{t(new Error("no value resolved"))}})})):e;var r,i})},e.isAsyncIterable=n,e.isObservable=t,e.isPromise=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.then}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(27),n(28)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={createGraphiQLFetcher:!0};Object.defineProperty(e,"createGraphiQLFetcher",{enumerable:!0,get:function(){return n.createGraphiQLFetcher}}),Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(r,n)||n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(29)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createGraphiQLFetcher=function(e){let n;if("undefined"!=typeof window&&window.fetch&&(n=window.fetch),null!==(null==e?void 0:e.enableIncrementalDelivery)&&!1===e.enableIncrementalDelivery||(e.enableIncrementalDelivery=!0),e.fetch&&(n=e.fetch),!n)throw Error("No valid fetcher implementation available");const r=(0,t.createSimpleFetcher)(e,n),i=e.enableIncrementalDelivery?(0,t.createMultipartFetcher)(e,n):r;return(n,o)=>{if("IntrospectionQuery"===n.operationName)return(e.schemaFetcher||r)(n,o);if((null==o?void 0:o.documentAST)&&(0,t.isSubscriptionWithName)(o.documentAST,n.operationName||void 0)){const r=(0,t.getWsFetcher)(e,o);if(!r)throw Error("Your GraphiQL createFetcher is not properly configured for websocket subscriptions yet. "+(e.subscriptionUrl?`Provided URL ${e.subscriptionUrl} failed`:"Please provide subscriptionUrl, wsClient or legacyClient option first."));return r(n)}return i(n,o)}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(1),n(30),n(31)],void 0===(o="function"==typeof(r=function(e,t,r,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSubscriptionWithName=e.getWsFetcher=e.createWebsocketsFetcherFromUrl=e.createWebsocketsFetcherFromClient=e.createSimpleFetcher=e.createMultipartFetcher=e.createLegacyWebsocketsFetcher=void 0;var o=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},a=function(e){return this instanceof a?(this.v=e,this):new a(e)},s=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}},l=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||l(e,t)}))})}function l(e,t){try{(n=i[e](t)).value instanceof a?Promise.resolve(n.value.v).then(u,c):d(o[0][2],n)}catch(e){d(o[0][3],e)}var n}function u(e){l("next",e)}function c(e){l("throw",e)}function d(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}};e.isSubscriptionWithName=(e,n)=>{let r=!1;return(0,t.visit)(e,{OperationDefinition(e){var t;n===(null===(t=e.name)||void 0===t?void 0:t.value)&&"subscription"===e.operation&&(r=!0)}}),r},e.createSimpleFetcher=(e,t)=>(n,r)=>o(void 0,void 0,void 0,(function*(){return(yield t(e.url,{method:"POST",body:JSON.stringify(n),headers:Object.assign(Object.assign({"content-type":"application/json"},e.headers),null==r?void 0:r.headers)})).json()}));const u=(e,t)=>{let r;try{const{createClient:i}=n(32);return r=i({url:e,connectionParams:t}),c(r)}catch(t){if((e=>"object"==typeof e&&null!==e&&"code"in e)(t)&&"MODULE_NOT_FOUND"===t.code)throw Error("You need to install the 'graphql-ws' package to use websockets when passing a 'subscriptionUrl'");console.error(`Error creating websocket client for:\n${e}\n\n${t}`)}};e.createWebsocketsFetcherFromUrl=u;const c=e=>t=>(0,i.makeAsyncIterableIteratorFromSink)(n=>e.subscribe(t,Object.assign(Object.assign({},n),{error:e=>{e instanceof CloseEvent?n.error(new Error(`Socket closed with event ${e.code} ${e.reason||""}`.trim())):n.error(e)}})));e.createWebsocketsFetcherFromClient=c;const d=e=>t=>{const n=e.request(t);return(0,i.makeAsyncIterableIteratorFromSink)(e=>n.subscribe(e).unsubscribe)};e.createLegacyWebsocketsFetcher=d,e.createMultipartFetcher=(e,t)=>function(n,o){return l(this,arguments,(function*(){var l,u;const c=yield a(t(e.url,{method:"POST",body:JSON.stringify(n),headers:Object.assign(Object.assign({"content-type":"application/json",accept:"application/json, multipart/mixed"},e.headers),null==o?void 0:o.headers)}).then(e=>(0,r.meros)(e,{multiple:!0})));if(!(0,i.isAsyncIterable)(c))return yield a(yield yield a(c.json()));try{for(var d,f=s(c);!(d=yield a(f.next())).done;){const e=d.value;if(e.some(e=>!e.json)){const t=e.map(e=>`Headers::\n${e.headers}\n\nBody::\n${e.body}`);throw new Error("Expected multipart chunks to be of json type. got:\n"+t)}yield yield a(e.map(e=>e.body))}}catch(e){l={error:e}}finally{try{d&&!d.done&&(u=f.return)&&(yield a(u.call(f)))}finally{if(l)throw l.error}}}))},e.getWsFetcher=(e,t)=>{if(e.wsClient)return c(e.wsClient);if(e.subscriptionUrl)return u(e.subscriptionUrl,Object.assign(Object.assign({},e.wsConnectionParams),null==t?void 0:t.headers));const n=e.legacyClient||e.legacyWsClient;return n?d(n):void 0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.r(t),n.d(t,"meros",(function(){return i}));const r=new TextDecoder;async function i(e,t){if(!e.ok||!e.body||e.bodyUsed)return e;const n=e.headers.get("content-type");if(!n||!~n.indexOf("multipart/mixed"))return e;const i=n.indexOf("boundary=");return async function*(e,t,n){const i=e.getReader(),o=!n||!n.multiple;let a="",s=!0,l=[];try{let e;e:for(;!(e=await i.read()).done;){const n=r.decode(e.value),i=n.indexOf(t);let u=a.length;for(a+=n,~i?u+=i:u=a.indexOf(t),l=[];~u;){const e=a.substring(0,u),n=a.substring(u+t.length);if(s)s=!1;else{const t={},r=e.indexOf("\r\n\r\n"),i=a.slice(0,r).toString().trim().split(/\r\n/);let s;for(;s=i.shift();)s=s.split(": "),t[s.shift().toLowerCase()]=s.join(": ");let u=e.substring(r+"\r\n\r\n".length,e.lastIndexOf("\r\n")),c=!1;if(s=t["content-type"],s&&~s.indexOf("application/json"))try{u=JSON.parse(u),c=!0}catch(e){}if(s={headers:t,body:u,json:c},o?yield s:l.push(s),"--"===n.substring(0,2))break e}a=n,u=a.indexOf(t)}l.length&&(yield l)}}finally{l.length&&(yield l),i.releaseLock()}}(e.body,"--"+(~i?n.substring(i+9).trim().replace(/['"]/g,""):"-"),t)}},function(e,t,n){"use strict";function r(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}n.r(t),n.d(t,"applyAsyncIterableIteratorToSink",(function(){return l})),n.d(t,"isAsyncIterable",(function(){return u})),n.d(t,"makeAsyncIterableIteratorFromSink",(function(){return s})),n.d(t,"makePushPullAsyncIterableIterator",(function(){return a}));const i=Symbol(),o=Symbol();function a(){let e=!0;const t=[];let n=r();const a=r(),s=async function*(){for(;;)if(t.length>0)yield t.shift();else{const e=await Promise.race([n.promise,a.promise]);if(e===i)break;if(e!==o)throw e}}();const l=s.return.bind(s);s.return=(...t)=>(e=!1,a.resolve(i),l(...t));const u=s.throw.bind(s);return s.throw=t=>(e=!1,a.resolve(t),u(t)),{pushValue:function(i){!1!==e&&(t.push(i),n.resolve(o),n=r())},asyncIterableIterator:s}}const s=e=>{const{pushValue:t,asyncIterableIterator:n}=a(),r=e({next:e=>{t(e)},complete:()=>{n.return()},error:e=>{n.throw(e)}}),i=n.return;let o=void 0;return n.return=()=>(void 0===o&&(r(),o=i()),o),n};function l(e,t){return(async()=>{try{for await(const n of e)t.next(n);t.complete()}catch(e){t.error(e)}})(),()=>{var t;null===(t=e.return)||void 0===t||t.call(e)}}function u(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator&&Symbol.asyncIterator in e)}},function(e,t,n){(function(n){var r,i,o;!function(n,a){i=[],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,(function(){"use strict";(function(e){const t=Object.prototype.hasOwnProperty;function r(e){return"object"==typeof e&&null!==e}function i(e,n){return t.call(e,n)}function o(e,n){return t.call(e,n)&&r(e[n])}function a(e,n){return t.call(e,n)&&"string"==typeof e[n]}function s(e,t){return e.length<124?e:t}var l,u;function c(t){if(r(t)){if(!a(t,"type"))return!1;switch(t.type){case e.MessageType.ConnectionInit:return!i(t,"payload")||void 0===t.payload||r(t.payload);case e.MessageType.ConnectionAck:case e.MessageType.Ping:case e.MessageType.Pong:return!i(t,"payload")||void 0===t.payload||r(t.payload);case e.MessageType.Subscribe:return a(t,"id")&&o(t,"payload")&&(!i(t.payload,"operationName")||void 0===t.payload.operationName||null===t.payload.operationName||"string"==typeof t.payload.operationName)&&a(t.payload,"query")&&(!i(t.payload,"variables")||void 0===t.payload.variables||null===t.payload.variables||o(t.payload,"variables"))&&(!i(t.payload,"extensions")||void 0===t.payload.extensions||null===t.payload.extensions||o(t.payload,"extensions"));case e.MessageType.Next:return a(t,"id")&&o(t,"payload");case e.MessageType.Error:return a(t,"id")&&(n=t.payload,Array.isArray(n)&&n.length>0&&n.every(e=>"message"in e));case e.MessageType.Complete:return a(t,"id");default:return!1}}var n;return!1}function d(e,t){if(c(e))return e;if("string"!=typeof e)throw new Error("Message not parsable");const n=JSON.parse(e,t);if(!c(n))throw new Error("Invalid message");return n}function f(e,t){if(!c(e))throw new Error("Cannot stringify invalid message");return JSON.stringify(e,t)}function p(e){return r(e)&&"code"in e&&"reason"in e}e.CloseCode=void 0,(l=e.CloseCode||(e.CloseCode={}))[l.InternalServerError=4500]="InternalServerError",l[l.InternalClientError=4005]="InternalClientError",l[l.BadRequest=4400]="BadRequest",l[l.BadResponse=4004]="BadResponse",l[l.Unauthorized=4401]="Unauthorized",l[l.Forbidden=4403]="Forbidden",l[l.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",l[l.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",l[l.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",l[l.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",l[l.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",e.MessageType=void 0,(u=e.MessageType||(e.MessageType={})).ConnectionInit="connection_init",u.ConnectionAck="connection_ack",u.Ping="ping",u.Pong="pong",u.Subscribe="subscribe",u.Next="next",u.Error="error",u.Complete="complete",e.GRAPHQL_TRANSPORT_WS_PROTOCOL="graphql-transport-ws",e.createClient=function(t){const{url:r,connectionParams:i,lazy:o=!0,onNonLazyError:a=console.error,lazyCloseTimeout:l=0,keepAlive:u=0,disablePong:c,connectionAckWaitTimeout:h=0,retryAttempts:m=5,retryWait:g=async function(e){let t=1e3;for(let n=0;n<e;n++)t*=2;await new Promise(e=>setTimeout(e,t+Math.floor(2700*Math.random()+300)))},isFatalConnectionProblem:v=(e=>!p(e)),on:y,webSocketImpl:b,generateID:E=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},jsonMessageReplacer:T,jsonMessageReviver:w}=t;let C;if(b){if(!("function"==typeof(x=b)&&"constructor"in x&&"CLOSED"in x&&"CLOSING"in x&&"CONNECTING"in x&&"OPEN"in x))throw new Error("Invalid WebSocket implementation provided");C=b}else"undefined"!=typeof WebSocket?C=WebSocket:void 0!==n?C=n.WebSocket||n.MozWebSocket:"undefined"!=typeof window&&(C=window.WebSocket||window.MozWebSocket);var x;if(!C)throw new Error("WebSocket implementation missing");const S=C,N=(()=>{const e=(()=>{const e={};return{on:(t,n)=>(e[t]=n,()=>{delete e[t]}),emit(t){var n;"id"in t&&(null===(n=e[t.id])||void 0===n||n.call(e,t))}}})(),t={connecting:(null==y?void 0:y.connecting)?[y.connecting]:[],opened:(null==y?void 0:y.opened)?[y.opened]:[],connected:(null==y?void 0:y.connected)?[y.connected]:[],ping:(null==y?void 0:y.ping)?[y.ping]:[],pong:(null==y?void 0:y.pong)?[y.pong]:[],message:(null==y?void 0:y.message)?[e.emit,y.message]:[e.emit],closed:(null==y?void 0:y.closed)?[y.closed]:[],error:(null==y?void 0:y.error)?[y.error]:[]};return{onMessage:e.on,on(e,n){const r=t[e];return r.push(n),()=>{r.splice(r.indexOf(n),1)}},emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(const n of[...t[e]])n(...r)}}})();function k(e){const t=[N.on("error",n=>{t.forEach(e=>e()),e(n)}),N.on("closed",n=>{t.forEach(e=>e()),e(n)})]}let _,O=0,I=!1,L=0,A=!1;async function D(){const[t,n]=await(null!=_?_:_=new Promise((t,n)=>(async()=>{if(I){if(await g(L),!O)return _=void 0,n({code:1e3,reason:"All Subscriptions Gone"});L++}N.emit("connecting");const o=new S("function"==typeof r?await r():r,"graphql-transport-ws");let a,l;function p(){isFinite(u)&&u>0&&(clearTimeout(l),l=setTimeout(()=>{o.readyState===S.OPEN&&(o.send(f({type:e.MessageType.Ping})),N.emit("ping",!1,void 0))},u))}k(e=>{_=void 0,clearTimeout(a),clearTimeout(l),n(e)}),o.onerror=e=>N.emit("error",e),o.onclose=e=>N.emit("closed",e),o.onopen=async()=>{try{N.emit("opened",o);const t="function"==typeof i?await i():i;o.send(f(t?{type:e.MessageType.ConnectionInit,payload:t}:{type:e.MessageType.ConnectionInit},T)),isFinite(h)&&h>0&&(a=setTimeout(()=>{o.close(e.CloseCode.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},h)),p()}catch(t){N.emit("error",t),o.close(e.CloseCode.InternalClientError,s(t instanceof Error?t.message:new Error(t).message,"Internal client error"))}};let m=!1;o.onmessage=n=>{let{data:r}=n;try{const n=d(r,w);if(N.emit("message",n),"ping"===n.type||"pong"===n.type)return N.emit(n.type,!0,n.payload),void("pong"===n.type?p():c||(o.send(f(n.payload?{type:e.MessageType.Pong,payload:n.payload}:{type:e.MessageType.Pong})),N.emit("pong",!1,n.payload)));if(m)return;if(n.type!==e.MessageType.ConnectionAck)throw new Error("First message cannot be of type "+n.type);clearTimeout(a),m=!0,N.emit("connected",o,n.payload),I=!1,L=0,t([o,new Promise((e,t)=>k(t))])}catch(t){o.onmessage=null,N.emit("error",t),o.close(e.CloseCode.BadResponse,s(t instanceof Error?t.message:new Error(t).message,"Bad response"))}}})()));t.readyState===S.CLOSING&&await n;let o=()=>{};const a=new Promise(e=>o=e);return[t,o,Promise.race([a.then(()=>{if(!O){const e=()=>t.close(1e3,"Normal Closure");isFinite(l)&&l>0?setTimeout(()=>{O||t.readyState!==S.OPEN||e()},l):e()}}),n])]}function M(t){if(p(t)&&(n=t.code,![1e3,1001,1006,1005,1012,1013,1013].includes(n)&&n>=1e3&&n<=1999||[e.CloseCode.InternalServerError,e.CloseCode.InternalClientError,e.CloseCode.BadRequest,e.CloseCode.BadResponse,e.CloseCode.Unauthorized,e.CloseCode.SubprotocolNotAcceptable,e.CloseCode.SubscriberAlreadyExists,e.CloseCode.TooManyInitialisationRequests].includes(t.code)))throw t;var n;if(A)return!1;if(p(t)&&1e3===t.code)return O>0;if(!m||L>=m)throw t;if(v(t))throw t;return I=!0}return o||(async()=>{for(O++;;)try{const[,,e]=await D();await e}catch(e){try{if(!M(e))return}catch(e){return null==a?void 0:a(e)}}})(),{on:N.on,subscribe(t,n){const r=E();let i=!1,o=!1,a=()=>{O--,i=!0};return(async()=>{for(O++;;)try{const[s,l,u]=await D();if(i)return l();const c=N.onMessage(r,t=>{switch(t.type){case e.MessageType.Next:return void n.next(t.payload);case e.MessageType.Error:return o=!0,i=!0,n.error(t.payload),void a();case e.MessageType.Complete:return i=!0,void a()}});return s.send(f({id:r,type:e.MessageType.Subscribe,payload:t},T)),a=()=>{i||s.readyState!==S.OPEN||s.send(f({id:r,type:e.MessageType.Complete},T)),O--,i=!0,l()},void await u.finally(c)}catch(e){if(!M(e))return}})().then(()=>{o||n.complete()}).catch(e=>{n.error(e)}),()=>{i||a()}},async dispose(){if(A=!0,_){const[e]=await _;e.close(1e3,"Normal Closure")}}}},e.isMessage=c,e.parseMessage=d,e.stringifyMessage=f,Object.defineProperty(e,"__esModule",{value:!0})})(t)}))}).call(this,n(11))},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e){return JSON.stringify(e,null,2)}function n(e){return e instanceof Error?function(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}(e):e}Object.defineProperty(e,"__esModule",{value:!0}),e.formatError=function(e){return Array.isArray(e)?t({errors:e.map(e=>n(e))}):t({errors:[n(e)]})},e.formatResult=function(e){return t(e)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(35),n(36),n(37)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))})),Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))})),Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(1)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e){if(!("getFields"in e))return[];const n=e.getFields();if(n.id)return["id"];if(n.edges)return["edges"];if(n.node)return["node"];const r=[];return Object.keys(n).forEach(e=>{(0,t.isLeafType)(n[e].type)&&r.push(e)}),r}function r(e,t){if(0===t.length)return e;let n="",r=0;return t.forEach(t=>{let{index:i,string:o}=t;n+=e.slice(r,i)+o,r=i}),n+=e.slice(r),n}Object.defineProperty(e,"__esModule",{value:!0}),e.fillLeafs=function(e,i,o){const a=[];if(!e||!i)return{insertions:a,result:i};let s;try{s=(0,t.parse)(i)}catch(e){return{insertions:a,result:i}}const l=o||n,u=new t.TypeInfo(e);return(0,t.visit)(s,{leave(e){u.leave(e)},enter(e){if(u.enter(e),"Field"===e.kind&&!e.selectionSet){const n=function e(n,r){const i=(0,t.getNamedType)(n);if(!n||(0,t.isLeafType)(n))return;const o=r(i);return Array.isArray(o)&&0!==o.length&&"getFields"in i?{kind:t.Kind.SELECTION_SET,selections:o.map(n=>{const o=i.getFields()[n],a=o?o.type:null;return{kind:t.Kind.FIELD,name:{kind:t.Kind.NAME,value:n},selectionSet:e(a,r)}})}:void 0}(function(e){if(e)return e}(u.getType()),l);if(n&&e.loc){const r=function(e,t){let n=t,r=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(r=n)}return e.substring(n,r)}(i,e.loc.start);a.push({index:e.loc.end,string:" "+(0,t.print)(n).replace(/\n/g,"\n"+r)})}}}}),{insertions:a,result:r(i,a)}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(1)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeAst=function(e,n){const r=n?new t.TypeInfo(n):null,i=Object.create(null);for(const n of e.definitions)n.kind===t.Kind.FRAGMENT_DEFINITION&&(i[n.name.value]=n);const o={SelectionSet(e){const n=r?r.getParentType():null;let{selections:o}=e;return o=function e(n,r,i){var o;const a=i?(0,t.getNamedType)(i).name:null,s=[],l=[];for(let u of r){if("FragmentSpread"===u.kind){const e=u.name.value;if(!u.directives||0===u.directives.length){if(l.indexOf(e)>=0)continue;l.push(e)}const r=n[u.name.value];if(r){const{typeCondition:e,directives:n,selectionSet:i}=r;u={kind:t.Kind.INLINE_FRAGMENT,typeCondition:e,directives:n,selectionSet:i}}}if(u.kind===t.Kind.INLINE_FRAGMENT&&(!u.directives||0===(null===(o=u.directives)||void 0===o?void 0:o.length))){const t=u.typeCondition?u.typeCondition.name.value:null;if(!t||t===a){s.push(...e(n,u.selectionSet.selections,i));continue}}s.push(u)}return s}(i,o,n),o=function(e,t){var n;const r=new Map,i=[];for(const o of e)if("Field"===o.kind){const e=t(o),a=r.get(e);if(null===(n=o.directives)||void 0===n?void 0:n.length){const e=Object.assign({},o);i.push(e)}else if((null==a?void 0:a.selectionSet)&&o.selectionSet)a.selectionSet.selections=[...a.selectionSet.selections,...o.selectionSet.selections];else if(!a){const t=Object.assign({},o);r.set(e,t),i.push(t)}}else i.push(o);return i}(o,e=>e.alias?e.alias.value:e.name.value),Object.assign(Object.assign({},e),{selections:o})},FragmentDefinition:()=>null};return(0,t.visit)(e,r?(0,t.visitWithTypeInfo)(r,o):o)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSelectedOperationName=function(e,t,n){if(!n||n.length<1)return;const r=n.map(e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value});if(t&&-1!==r.indexOf(t))return t;if(t&&e){const n=e.map(e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value}).indexOf(t);if(-1!==n&&n<r.length)return r[n]}return r[0]}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(39),n(40),n(12)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))})),Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))})),Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StorageAPI=void 0,e.StorageAPI=class{constructor(e){e?this.storage=e:null===e?this.storage=null:"undefined"!=typeof window?(this.storage=window.localStorage,this.storage.clear=()=>{for(const e in window.localStorage)0===e.indexOf(t+":")&&window.localStorage.removeItem(e)}):this.storage=null}get(e){if(!this.storage)return null;const n=`${t}:${e}`,r=this.storage.getItem(n);return"null"===r||"undefined"===r?(this.storage.removeItem(n),null):r||null}set(e,n){let r=!1,i=null;if(this.storage){const o=`${t}:${e}`;if(n)try{this.storage.setItem(o,n)}catch(e){i=e instanceof Error?e:new Error(""+e),r=function(e,t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}(this.storage,e)}else this.storage.removeItem(o)}return{isQuotaError:r,error:i}}clear(){this.storage&&this.storage.clear()}};const t="graphiql"})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(1),n(12)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HistoryStore=void 0,e.HistoryStore=class{constructor(e,t){this.storage=e,this.maxHistoryLength=t,this.updateHistory=(e,t,n,r)=>{if(this.shouldSaveQuery(e,t,n,this.history.fetchRecent())){this.history.push({query:e,variables:t,headers:n,operationName:r});const i=this.history.items,o=this.favorite.items;this.queries=i.concat(o)}},this.history=new n.QueryStore("queries",this.storage,this.maxHistoryLength),this.favorite=new n.QueryStore("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,n,r,i){if(!e)return!1;try{(0,t.parse)(e)}catch(e){return!1}if(e.length>1e5)return!1;if(!i)return!0;if(JSON.stringify(e)===JSON.stringify(i.query)){if(JSON.stringify(n)===JSON.stringify(i.variables)){if(JSON.stringify(r)===JSON.stringify(i.headers))return!1;if(r&&!i.headers)return!1}if(n&&!i.variables)return!1}return!0}toggleFavorite(e,t,n,r,i,o){const a={query:e,variables:t,headers:n,operationName:r,label:i};this.favorite.contains(a)?o&&(a.favorite=!1,this.favorite.delete(a)):(a.favorite=!0,this.favorite.push(a)),this.queries=[...this.history.items,...this.favorite.items]}editLabel(e,t,n,r,i,o){const a={query:e,variables:t,headers:n,operationName:r,label:i};o?this.favorite.edit(Object.assign(Object.assign({},a),{favorite:o})):this.history.edit(a),this.queries=[...this.history.items,...this.favorite.items]}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=function(e){var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var c={};function d(){}function f(){}function p(){}var h={};h[i]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&n.call(g,i)&&(h=g);var v=p.prototype=d.prototype=Object.create(h);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function E(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return f.prototype=v.constructor=p,p.constructor=f,f.displayName=s(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),b.prototype[o]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),v[i]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(3),n(10)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}if(Object.defineProperty(e,"__esModule",{value:!0}),e.GraphiQL=i,e.GraphiQLInterface=o,t=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}(t),parseInt(t.default.version.slice(0,2),10)<16)throw Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join("\n"));function i(e){let{dangerouslyAssumeSchemaIsValid:r,defaultQuery:i,externalFragments:a,fetcher:s,getDefaultFieldNames:l,headers:u,inputValueDeprecation:c,introspectionQueryName:d,maxHistoryLength:f,onEditOperationName:p,onSchemaChange:h,onTabChange:m,onTogglePluginVisibility:g,operationName:v,plugins:y,query:b,response:E,schema:T,schemaDescription:w,shouldPersistHeaders:C,storage:x,validationRules:S,variables:N,visiblePlugin:k,..._}=e;if("function"!=typeof s)throw new TypeError("The `GraphiQL` component requires a `fetcher` function to be passed as prop.");return t.default.createElement(n.GraphiQLProvider,{getDefaultFieldNames:l,dangerouslyAssumeSchemaIsValid:r,defaultQuery:i,externalFragments:a,fetcher:s,headers:u,inputValueDeprecation:c,introspectionQueryName:d,maxHistoryLength:f,onEditOperationName:p,onSchemaChange:h,onTabChange:m,onTogglePluginVisibility:g,plugins:y,visiblePlugin:k,operationName:v,query:b,response:E,schema:T,schemaDescription:w,shouldPersistHeaders:C,storage:x,validationRules:S,variables:N},t.default.createElement(o,_))}function o(e){var r,o,a;const s=null===(r=e.isHeadersEditorEnabled)||void 0===r||r,l=(0,n.useEditorContext)({nonNull:!0}),c=(0,n.useExecutionContext)({nonNull:!0}),d=(0,n.useSchemaContext)({nonNull:!0}),f=(0,n.useStorageContext)(),p=(0,n.usePluginContext)(),h=(0,n.useCopyQuery)({onCopyQuery:e.onCopyQuery}),m=(0,n.useMergeQuery)(),g=(0,n.usePrettifyEditors)(),{theme:v,setTheme:y}=(0,n.useTheme)(),b=null==p||null===(o=p.visiblePlugin)||void 0===o?void 0:o.content,E=(0,n.useDragResize)({defaultSizeRelation:1/3,direction:"horizontal",initiallyHidden:null!=p&&p.visiblePlugin?void 0:"first",onHiddenElementChange:e=>{"first"===e&&(null==p||p.setVisiblePlugin(null))},sizeThresholdSecond:200,storageKey:"docExplorerFlex"}),T=(0,n.useDragResize)({direction:"horizontal",storageKey:"editorFlex"}),w=(0,n.useDragResize)({defaultSizeRelation:3,direction:"vertical",initiallyHidden:(()=>{if("variables"!==e.defaultEditorToolsVisibility&&"headers"!==e.defaultEditorToolsVisibility)return"boolean"==typeof e.defaultEditorToolsVisibility?e.defaultEditorToolsVisibility?void 0:"second":l.initialVariables||l.initialHeaders?void 0:"second"})(),sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"}),[C,x]=(0,t.useState)(()=>"variables"===e.defaultEditorToolsVisibility||"headers"===e.defaultEditorToolsVisibility?e.defaultEditorToolsVisibility:!l.initialVariables&&l.initialHeaders&&s?"headers":"variables"),[S,N]=(0,t.useState)(null),[k,_]=(0,t.useState)(null),O=t.default.Children.toArray(e.children),I=O.find(e=>u(e,i.Logo))||t.default.createElement(i.Logo,null),L=O.find(e=>u(e,i.Toolbar))||t.default.createElement(t.default.Fragment,null,t.default.createElement(n.ToolbarButton,{onClick:()=>g(),label:"Prettify query (Shift-Ctrl-P)"},t.default.createElement(n.PrettifyIcon,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),t.default.createElement(n.ToolbarButton,{onClick:()=>m(),label:"Merge fragments into query (Shift-Ctrl-M)"},t.default.createElement(n.MergeIcon,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),t.default.createElement(n.ToolbarButton,{onClick:()=>h(),label:"Copy query (Shift-Ctrl-C)"},t.default.createElement(n.CopyIcon,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),null!==(a=e.toolbar)&&void 0!==a&&a.additionalContent?e.toolbar.additionalContent:null),A=O.find(e=>u(e,i.Footer)),D=()=>{"first"===E.hiddenElement&&E.setHiddenElement(null)},M=0===window.navigator.platform.toLowerCase().indexOf("mac")?t.default.createElement("code",{className:"graphiql-key"},"Cmd"):t.default.createElement("code",{className:"graphiql-key"},"Ctrl");return t.default.createElement("div",{"data-testid":"graphiql-container",className:"graphiql-container"},t.default.createElement("div",{className:"graphiql-sidebar"},t.default.createElement("div",null,p?null==p?void 0:p.plugins.map(e=>{const r=e===p.visiblePlugin,i=`${r?"Hide":"Show"} ${e.title}`,o=e.icon;return t.default.createElement(n.Tooltip,{key:e.title,label:i},t.default.createElement(n.UnStyledButton,{type:"button",className:r?"active":"",onClick:()=>{r?(p.setVisiblePlugin(null),E.setHiddenElement("first")):(p.setVisiblePlugin(e),E.setHiddenElement(null))},"aria-label":i},t.default.createElement(o,{"aria-hidden":"true"})))}):null),t.default.createElement("div",null,t.default.createElement(n.Tooltip,{label:"Re-fetch GraphQL schema"},t.default.createElement(n.UnStyledButton,{type:"button",disabled:d.isFetching,onClick:()=>d.introspect(),"aria-label":"Re-fetch GraphQL schema"},t.default.createElement(n.ReloadIcon,{className:d.isFetching?"graphiql-spin":"","aria-hidden":"true"}))),t.default.createElement(n.Tooltip,{label:"Open short keys dialog"},t.default.createElement(n.UnStyledButton,{type:"button",onClick:()=>N("short-keys"),"aria-label":"Open short keys dialog"},t.default.createElement(n.KeyboardShortcutIcon,{"aria-hidden":"true"}))),t.default.createElement(n.Tooltip,{label:"Open settings dialog"},t.default.createElement(n.UnStyledButton,{type:"button",onClick:()=>N("settings"),"aria-label":"Open settings dialog"},t.default.createElement(n.SettingsIcon,{"aria-hidden":"true"}))))),t.default.createElement("div",{className:"graphiql-main"},t.default.createElement("div",{ref:E.firstRef,style:{minWidth:"200px"}},t.default.createElement("div",{className:"graphiql-plugin"},b?t.default.createElement(b,null):null)),t.default.createElement("div",{ref:E.dragBarRef},null!=p&&p.visiblePlugin?t.default.createElement("div",{className:"graphiql-horizontal-drag-bar"}):null),t.default.createElement("div",{ref:E.secondRef},t.default.createElement("div",{className:"graphiql-sessions"},t.default.createElement("div",{className:"graphiql-session-header"},t.default.createElement(n.Tabs,{"aria-label":"Select active operation"},l.tabs.length>1?t.default.createElement(t.default.Fragment,null,l.tabs.map((e,r)=>t.default.createElement(n.Tab,{key:e.id,isActive:r===l.activeTabIndex},t.default.createElement(n.Tab.Button,{"aria-controls":"graphiql-session",id:"graphiql-session-tab-"+r,onClick:()=>{c.stop(),l.changeTab(r)}},e.title),t.default.createElement(n.Tab.Close,{onClick:()=>{l.activeTabIndex===r&&c.stop(),l.closeTab(r)}}))),t.default.createElement("div",null,t.default.createElement(n.Tooltip,{label:"Add tab"},t.default.createElement(n.UnStyledButton,{type:"button",className:"graphiql-tab-add",onClick:()=>l.addTab(),"aria-label":"Add tab"},t.default.createElement(n.PlusIcon,{"aria-hidden":"true"}))))):null),t.default.createElement("div",{className:"graphiql-session-header-right"},1===l.tabs.length?t.default.createElement("div",{className:"graphiql-add-tab-wrapper"},t.default.createElement(n.Tooltip,{label:"Add tab"},t.default.createElement(n.UnStyledButton,{type:"button",className:"graphiql-tab-add",onClick:()=>l.addTab(),"aria-label":"Add tab"},t.default.createElement(n.PlusIcon,{"aria-hidden":"true"})))):null,I)),t.default.createElement("div",{role:"tabpanel",id:"graphiql-session",className:"graphiql-session","aria-labelledby":"graphiql-session-tab-"+l.activeTabIndex},t.default.createElement("div",{ref:T.firstRef},t.default.createElement("div",{className:"graphiql-editors"+(1===l.tabs.length?" full-height":"")},t.default.createElement("div",{ref:w.firstRef},t.default.createElement("section",{className:"graphiql-query-editor","aria-label":"Query Editor"},t.default.createElement("div",{className:"graphiql-query-editor-wrapper"},t.default.createElement(n.QueryEditor,{editorTheme:e.editorTheme,keyMap:e.keyMap,onClickReference:D,onCopyQuery:e.onCopyQuery,onEdit:e.onEditQuery,readOnly:e.readOnly})),t.default.createElement("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands"},t.default.createElement(n.ExecuteButton,null),L))),t.default.createElement("div",{ref:w.dragBarRef},t.default.createElement("div",{className:"graphiql-editor-tools"},t.default.createElement("div",{className:"graphiql-editor-tools-tabs"},t.default.createElement(n.UnStyledButton,{type:"button",className:"variables"===C?"active":"",onClick:()=>{"second"===w.hiddenElement&&w.setHiddenElement(null),x("variables")}},"Variables"),s?t.default.createElement(n.UnStyledButton,{type:"button",className:"headers"===C?"active":"",onClick:()=>{"second"===w.hiddenElement&&w.setHiddenElement(null),x("headers")}},"Headers"):null),t.default.createElement(n.Tooltip,{label:"second"===w.hiddenElement?"Show editor tools":"Hide editor tools"},t.default.createElement(n.UnStyledButton,{type:"button",onClick:()=>{w.setHiddenElement("second"===w.hiddenElement?null:"second")},"aria-label":"second"===w.hiddenElement?"Show editor tools":"Hide editor tools"},"second"===w.hiddenElement?t.default.createElement(n.ChevronUpIcon,{className:"graphiql-chevron-icon","aria-hidden":"true"}):t.default.createElement(n.ChevronDownIcon,{className:"graphiql-chevron-icon","aria-hidden":"true"}))))),t.default.createElement("div",{ref:w.secondRef},t.default.createElement("section",{className:"graphiql-editor-tool","aria-label":"variables"===C?"Variables":"Headers"},t.default.createElement(n.VariableEditor,{editorTheme:e.editorTheme,isHidden:"variables"!==C,keyMap:e.keyMap,onEdit:e.onEditVariables,onClickReference:D,readOnly:e.readOnly}),s&&t.default.createElement(n.HeaderEditor,{editorTheme:e.editorTheme,isHidden:"headers"!==C,keyMap:e.keyMap,onEdit:e.onEditHeaders,readOnly:e.readOnly}))))),t.default.createElement("div",{ref:T.dragBarRef},t.default.createElement("div",{className:"graphiql-horizontal-drag-bar"})),t.default.createElement("div",{ref:T.secondRef},t.default.createElement("div",{className:"graphiql-response"},c.isFetching?t.default.createElement(n.Spinner,null):null,t.default.createElement(n.ResponseEditor,{editorTheme:e.editorTheme,responseTooltip:e.responseTooltip,keyMap:e.keyMap}),A)))))),t.default.createElement(n.Dialog,{isOpen:"short-keys"===S,onDismiss:()=>N(null)},t.default.createElement("div",{className:"graphiql-dialog-header"},t.default.createElement("div",{className:"graphiql-dialog-title"},"Short Keys"),t.default.createElement(n.Dialog.Close,{onClick:()=>N(null)})),t.default.createElement("div",{className:"graphiql-dialog-section"},t.default.createElement("div",null,t.default.createElement("table",{className:"graphiql-table"},t.default.createElement("thead",null,t.default.createElement("tr",null,t.default.createElement("th",null,"Short key"),t.default.createElement("th",null,"Function"))),t.default.createElement("tbody",null,t.default.createElement("tr",null,t.default.createElement("td",null,M," + ",t.default.createElement("code",{className:"graphiql-key"},"F")),t.default.createElement("td",null,"Search in editor")),t.default.createElement("tr",null,t.default.createElement("td",null,M," + ",t.default.createElement("code",{className:"graphiql-key"},"K")),t.default.createElement("td",null,"Search in documentation")),t.default.createElement("tr",null,t.default.createElement("td",null,M," + ",t.default.createElement("code",{className:"graphiql-key"},"Enter")),t.default.createElement("td",null,"Execute query")),t.default.createElement("tr",null,t.default.createElement("td",null,t.default.createElement("code",{className:"graphiql-key"},"Ctrl")," + ",t.default.createElement("code",{className:"graphiql-key"},"Shift")," + ",t.default.createElement("code",{className:"graphiql-key"},"P")),t.default.createElement("td",null,"Prettify editors")),t.default.createElement("tr",null,t.default.createElement("td",null,t.default.createElement("code",{className:"graphiql-key"},"Ctrl")," + ",t.default.createElement("code",{className:"graphiql-key"},"Shift")," + ",t.default.createElement("code",{className:"graphiql-key"},"M")),t.default.createElement("td",null,"Merge fragments definitions into operation definition")),t.default.createElement("tr",null,t.default.createElement("td",null,t.default.createElement("code",{className:"graphiql-key"},"Ctrl")," + ",t.default.createElement("code",{className:"graphiql-key"},"Shift")," + ",t.default.createElement("code",{className:"graphiql-key"},"C")),t.default.createElement("td",null,"Copy query")),t.default.createElement("tr",null,t.default.createElement("td",null,t.default.createElement("code",{className:"graphiql-key"},"Ctrl")," + ",t.default.createElement("code",{className:"graphiql-key"},"Shift")," + ",t.default.createElement("code",{className:"graphiql-key"},"R")),t.default.createElement("td",null,"Re-fetch schema using introspection")))),t.default.createElement("p",null,"The editors use"," ",t.default.createElement("a",{href:"https://codemirror.net/5/doc/manual.html#keymaps",target:"_blank",rel:"noopener noreferrer"},"CodeMirror Key Maps")," ","that add more short keys. This instance of Graph",t.default.createElement("em",null,"i"),"QL uses"," ",t.default.createElement("code",null,e.keyMap||"sublime"),".")))),t.default.createElement(n.Dialog,{isOpen:"settings"===S,onDismiss:()=>{N(null),_(null)}},t.default.createElement("div",{className:"graphiql-dialog-header"},t.default.createElement("div",{className:"graphiql-dialog-title"},"Settings"),t.default.createElement(n.Dialog.Close,{onClick:()=>{N(null),_(null)}})),t.default.createElement("div",{className:"graphiql-dialog-section"},t.default.createElement("div",null,t.default.createElement("div",{className:"graphiql-dialog-section-title"},"Theme"),t.default.createElement("div",{className:"graphiql-dialog-section-caption"},"Adjust how the interface looks like.")),t.default.createElement("div",null,t.default.createElement(n.ButtonGroup,null,t.default.createElement(n.Button,{type:"button",className:null===v?"active":"",onClick:()=>y(null)},"System"),t.default.createElement(n.Button,{type:"button",className:"light"===v?"active":"",onClick:()=>y("light")},"Light"),t.default.createElement(n.Button,{type:"button",className:"dark"===v?"active":"",onClick:()=>y("dark")},"Dark")))),f?t.default.createElement("div",{className:"graphiql-dialog-section"},t.default.createElement("div",null,t.default.createElement("div",{className:"graphiql-dialog-section-title"},"Clear storage"),t.default.createElement("div",{className:"graphiql-dialog-section-caption"},"Remove all locally stored data and start fresh.")),t.default.createElement("div",null,t.default.createElement(n.Button,{type:"button",state:k||void 0,disabled:"success"===k,onClick:()=>{try{null==f||f.clear(),_("success")}catch{_("error")}}},"success"===k?"Cleared data":"error"===k?"Failed":"Clear data"))):null))}function a(e){return t.default.createElement("div",{className:"graphiql-logo"},e.children||t.default.createElement("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer"},"Graph",t.default.createElement("em",null,"i"),"QL"))}function s(e){return t.default.createElement(t.default.Fragment,null,e.children)}function l(e){return t.default.createElement("div",{className:"graphiql-footer"},e.children)}function u(e,t){var n;return!(null==e||null===(n=e.type)||void 0===n||!n.displayName||e.type.displayName!==t.displayName)||e.type===t}i.Logo=a,i.Toolbar=s,i.Footer=l,a.displayName="GraphiQLLogo",s.displayName="GraphiQLToolbar",l.displayName="GraphiQLFooter"})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.c=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}r(i,"_mergeNamespaces");var o={exports:{}};!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function i(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,r){r&&r!=e.Init&&(t.removeKeyMap(o),t.state.closeBrackets=null),n&&(a(i(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(o))})),r(i,"getOption");var o={Backspace:u,Enter:c};function a(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),r="'"+n+"'";o[r]||(o[r]=s(n))}}function s(e){return function(t){return p(t,e)}}function l(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function u(t){var r=l(t);if(!r||t.getOption("disableInput"))return e.Pass;for(var o=i(r,"pairs"),a=t.listSelections(),s=0;s<a.length;s++){if(!a[s].empty())return e.Pass;var u=h(t,a[s].head);if(!u||o.indexOf(u)%2!=0)return e.Pass}for(s=a.length-1;s>=0;s--){var c=a[s].head;t.replaceRange("",n(c.line,c.ch-1),n(c.line,c.ch+1),"+delete")}}function c(t){var n=l(t),r=n&&i(n,"explode");if(!r||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a<o.length;a++){if(!o[a].empty())return e.Pass;var s=h(t,o[a].head);if(!s||r.indexOf(s)%2!=0)return e.Pass}t.operation((function(){var e=t.lineSeparator()||"\n";t.replaceSelection(e+e,null),d(t,-1),o=t.listSelections();for(var n=0;n<o.length;n++){var r=o[n].head.line;t.indentLine(r,null,!0),t.indentLine(r+1,null,!0)}}))}function d(e,t){for(var n=[],r=e.listSelections(),i=0,o=0;o<r.length;o++){var a=r[o];a.head==e.getCursor()&&(i=o);var s=a.head.ch||t>0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:s,head:s})}e.setSelections(n,i)}function f(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function p(t,r){var o=l(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=i(o,"pairs"),s=a.indexOf(r);if(-1==s)return e.Pass;for(var u,c=i(o,"closeBefore"),p=i(o,"triples"),h=a.charAt(s+1)==r,g=t.listSelections(),v=s%2==0,y=0;y<g.length;y++){var b,E=g[y],T=E.head,w=t.getRange(T,n(T.line,T.ch+1));if(v&&!E.empty())b="surround";else if(!h&&v||w!=r)if(h&&T.ch>1&&p.indexOf(r)>=0&&t.getRange(n(T.line,T.ch-2),T)==r+r){if(T.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(T.line,T.ch-2))))return e.Pass;b="addFour"}else if(h){var C=0==T.ch?" ":t.getRange(n(T.line,T.ch-1),T);if(e.isWordChar(w)||C==r||e.isWordChar(C))return e.Pass;b="both"}else{if(!v||!(0===w.length||/\s/.test(w)||c.indexOf(w)>-1))return e.Pass;b="both"}else b=h&&m(t,T)?"both":p.indexOf(r)>=0&&t.getRange(T,n(T.line,T.ch+3))==r+r+r?"skipThree":"skip";if(u){if(u!=b)return e.Pass}else u=b}var x=s%2?a.charAt(s-1):r,S=s%2?r:a.charAt(s+1);t.operation((function(){if("skip"==u)d(t,1);else if("skipThree"==u)d(t,3);else if("surround"==u){for(var e=t.getSelections(),n=0;n<e.length;n++)e[n]=x+e[n]+S;for(t.replaceSelections(e,"around"),e=t.listSelections().slice(),n=0;n<e.length;n++)e[n]=f(e[n]);t.setSelections(e)}else"both"==u?(t.replaceSelection(x+S,null),t.triggerElectric(x+S),d(t,-1)):"addFour"==u&&(t.replaceSelection(x+x+x+x,"before"),d(t,1))}))}function h(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function m(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}r(a,"ensureBound"),a(t.pairs+"`"),r(s,"handler"),r(l,"getConfig"),r(u,"handleBackspace"),r(c,"handleEnter"),r(d,"moveSel"),r(f,"contractSelection"),r(p,"handleChar"),r(h,"charsAround"),r(m,"stringStartsAfter")}(t.a.exports);var a=i({__proto__:null,default:o.exports},[o.exports]);e.c=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.l=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}r(i,"_mergeNamespaces");var o={exports:{}};!function(e){var t="CodeMirror-lint-markers";function n(t,n,i){var o=document.createElement("div");function a(t){if(!o.parentNode)return e.off(document,"mousemove",a);o.style.top=Math.max(0,t.clientY-o.offsetHeight-5)+"px",o.style.left=t.clientX+5+"px"}return o.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,o.appendChild(i.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(o):document.body.appendChild(o),r(a,"position"),e.on(document,"mousemove",a),a(n),null!=o.style.opacity&&(o.style.opacity=1),o}function i(e){e.parentNode&&e.parentNode.removeChild(e)}function o(e){e.parentNode&&(null==e.style.opacity&&i(e),e.style.opacity=0,setTimeout((function(){i(e)}),600))}function a(t,i,a,s){var l=n(t,i,a);function u(){e.off(s,"mouseout",u),l&&(o(l),l=null)}r(u,"hide");var c=setInterval((function(){if(l)for(var e=s;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){u();break}}if(!l)return clearInterval(c)}),400);e.on(s,"mouseout",u)}function s(e,t,n){for(var r in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),t&&!0!==t||(t={}),this.options={},this.linterOptions=t.options||{},l)this.options[r]=l[r];for(var r in t)l.hasOwnProperty(r)?null!=t[r]&&(this.options[r]=t[r]):t.options||(this.linterOptions[r]=t[r]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){E(e,t)},this.waitingFor=0}r(n,"showTooltip"),r(i,"rm"),r(o,"hideTooltip"),r(a,"showTooltipFor"),r(s,"LintState");var l={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function u(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t),n.options.highlightLines&&c(e);for(var r=0;r<n.marked.length;++r)n.marked[r].clear();n.marked.length=0}function c(e){e.eachLine((function(t){var n=t.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(t.wrapClass);n&&e.removeLineClass(t,"wrap",n[0])}))}function d(t,n,r,i,o){var s=document.createElement("div"),l=s;return s.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+r,i&&((l=s.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),0!=o&&e.on(l,"mouseover",(function(e){a(t,e,n,l)})),s}function f(e,t){return"error"==e?e:t}function p(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=r.from.line;(t[i]||(t[i]=[])).push(r)}return t}function h(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message CodeMirror-lint-message-"+t,void 0!==e.messageHTML?n.innerHTML=e.messageHTML:n.appendChild(document.createTextNode(e.message)),n}function m(t,n){var i=t.state.lint,o=++i.waitingFor;function a(){o=-1,t.off("change",a)}r(a,"abort"),t.on("change",a),n(t.getValue(),(function(n,r){t.off("change",a),i.waitingFor==o&&(r&&n instanceof e&&(n=r),t.operation((function(){v(t,n)})))}),i.linterOptions,t)}function g(t){var n=t.state.lint;if(n){var r=n.options,i=r.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(i)if(r.async||i.async)m(t,i);else{var o=i(t.getValue(),n.linterOptions,t);if(!o)return;o.then?o.then((function(e){t.operation((function(){v(t,e)}))})):t.operation((function(){v(t,o)}))}}}function v(e,n){var r=e.state.lint;if(r){var i=r.options;u(e);for(var o=p(n),a=0;a<o.length;++a){var s=o[a];if(s){var l=[];s=s.filter((function(e){return!(l.indexOf(e.message)>-1)&&l.push(e.message)}));for(var c=null,m=r.hasGutter&&document.createDocumentFragment(),g=0;g<s.length;++g){var v=s[g],y=v.severity;y||(y="error"),c=f(c,y),i.formatAnnotation&&(v=i.formatAnnotation(v)),r.hasGutter&&m.appendChild(h(v)),v.to&&r.marked.push(e.markText(v.from,v.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+y,__annotation:v}))}r.hasGutter&&e.setGutterMarker(a,t,d(e,m,c,o[a].length>1,i.tooltips)),i.highlightLines&&e.addLineClass(a,"wrap","CodeMirror-lint-line-"+c)}}i.onUpdateLinting&&i.onUpdateLinting(n,o,e)}}function y(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){g(e)}),t.options.delay))}function b(e,t,n){for(var r=n.target||n.srcElement,i=document.createDocumentFragment(),o=0;o<t.length;o++){var s=t[o];i.appendChild(h(s))}a(e,n,i,r)}function E(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var r=n.getBoundingClientRect(),i=(r.left+r.right)/2,o=(r.top+r.bottom)/2,a=e.findMarksAt(e.coordsChar({left:i,top:o},"client")),s=[],l=0;l<a.length;++l){var u=a[l].__annotation;u&&s.push(u)}s.length&&b(e,s,t)}}r(u,"clearMarks"),r(c,"clearErrorLines"),r(d,"makeMarker"),r(f,"getMaxSeverity"),r(p,"groupByLine"),r(h,"annotationTooltip"),r(m,"lintAsync"),r(g,"startLinting"),r(v,"updateLinting"),r(y,"onChange"),r(b,"popupTooltips"),r(E,"onMouseOver"),e.defineOption("lint",!1,(function(n,r,i){if(i&&i!=e.Init&&(u(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",y),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var o=n.getOption("gutters"),a=!1,l=0;l<o.length;++l)o[l]==t&&(a=!0);var c=n.state.lint=new s(n,r,a);c.options.lintOnChange&&n.on("change",y),0!=c.options.tooltips&&"gutter"!=c.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",c.onMouseOver),g(n)}})),e.defineExtension("performLint",(function(){g(this)}))}(t.a.exports);var a=i({__proto__:null,default:o.exports},[o.exports]);e.l=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.j=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}r(i,"_mergeNamespaces");var o,a={exports:{}};(o=t.a.exports).defineMode("javascript",(function(e,t){var n,i,a=e.indentUnit,s=t.statementIndent,l=t.jsonld,u=t.json||l,c=!1!==t.trackScope,d=t.typescript,f=t.wordCharacters||/[\w$\xa1-\uffff]/,p=function(){function e(e){return{type:e,style:"keyword"}}r(e,"kw");var t=e("keyword a"),n=e("keyword b"),i=e("keyword c"),o=e("keyword d"),a=e("operator"),s={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:o,break:o,continue:o,new:e("new"),delete:i,void:i,throw:i,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:a,typeof:a,instanceof:a,true:s,false:s,null:s,undefined:s,NaN:s,Infinity:s,this:e("this"),class:e("class"),super:e("atom"),yield:i,export:e("export"),import:e("import"),extends:i,await:i}}(),h=/[+\-*&%=<>!?|~^@]/,m=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function v(e,t,r){return n=e,i=r,t}function y(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=b(n),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return v("number","number");if("."==n&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return v(n);if("="==n&&e.eat(">"))return v("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return v("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),v("number","number");if("/"==n)return e.eat("*")?(t.tokenize=E,E(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):it(e,t,1)?(g(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==n)return t.tokenize=T,T(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),v("meta","meta");if("#"==n&&e.eatWhile(f))return v("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),v("comment","comment");if(h.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?v("."):v("operator","operator",e.current());if(f.test(n)){e.eatWhile(f);var r=e.current();if("."!=t.lastType){if(p.propertyIsEnumerable(r)){var i=p[r];return v(i.type,i.style,r)}if("async"==r&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",r)}return v("variable","variable",r)}}function b(e){return function(t,n){var r,i=!1;if(l&&"@"==t.peek()&&t.match(m))return n.tokenize=y,v("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||i);)i=!i&&"\\"==r;return i||(n.tokenize=y),v("string","string")}}function E(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=y;break}r="*"==n}return v("comment","comment")}function T(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=y;break}r=!r&&"\\"==n}return v("quasi","string-2",e.current())}function w(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(d){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l="([{}])".indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(f.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}r(g,"readRegexp"),r(v,"ret"),r(y,"tokenBase"),r(b,"tokenString"),r(E,"tokenComment"),r(T,"tokenQuasi"),r(w,"findFatArrow");var C={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function x(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function S(e,t){if(!c)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function N(e,t,n,r,i){var o=e.cc;for(k.state=e,k.stream=i,k.marked=null,k.cc=o,k.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():u?G:q)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return k.marked?k.marked:"variable"==n&&S(e,r)?"variable-2":t}}r(x,"JSLexical"),r(S,"inScope"),r(N,"parseJS");var k={state:null,column:null,marked:null,cc:null};function _(){for(var e=arguments.length-1;e>=0;e--)k.cc.push(arguments[e])}function O(){return _.apply(null,arguments),!0}function I(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function L(e){var n=k.state;if(k.marked="def",c){if(n.context)if("var"==n.lexical.info&&n.context&&n.context.block){var r=A(e,n.context);if(null!=r)return void(n.context=r)}else if(!I(e,n.localVars))return void(n.localVars=new R(e,n.localVars));t.globalVars&&!I(e,n.globalVars)&&(n.globalVars=new R(e,n.globalVars))}}function A(e,t){if(t){if(t.block){var n=A(e,t.prev);return n?n==t.prev?t:new M(n,t.vars,!0):null}return I(e,t.vars)?t:new M(t.prev,new R(e,t.vars),!1)}return null}function D(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function M(e,t,n){this.prev=e,this.vars=t,this.block=n}function R(e,t){this.name=e,this.next=t}r(_,"pass"),r(O,"cont"),r(I,"inList"),r(L,"register"),r(A,"registerVarScoped"),r(D,"isModifier"),r(M,"Context"),r(R,"Var");var F=new R("this",new R("arguments",null));function P(){k.state.context=new M(k.state.context,k.state.localVars,!1),k.state.localVars=F}function j(){k.state.context=new M(k.state.context,k.state.localVars,!0),k.state.localVars=null}function V(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function U(e,t){var n=r((function(){var n=k.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new x(r,k.stream.column(),e,null,n.lexical,t)}),"result");return n.lex=!0,n}function B(){var e=k.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function $(e){function t(n){return n==e?O():";"==e||"}"==n||")"==n||"]"==n?_():O(t)}return r(t,"exp"),t}function q(e,t){return"var"==e?O(U("vardef",t),_e,$(";"),B):"keyword a"==e?O(U("form"),z,q,B):"keyword b"==e?O(U("form"),q,B):"keyword d"==e?k.stream.match(/^\s*$/,!1)?O():O(U("stat"),Q,$(";"),B):"debugger"==e?O($(";")):"{"==e?O(U("}"),j,fe,B,V):";"==e?O():"if"==e?("else"==k.state.lexical.info&&k.state.cc[k.state.cc.length-1]==B&&k.state.cc.pop()(),O(U("form"),z,q,B,Me)):"function"==e?O(je):"for"==e?O(U("form"),j,Re,q,V,B):"class"==e||d&&"interface"==t?(k.marked="keyword",O(U("form","class"==e?e:t),qe,B)):"variable"==e?d&&"declare"==t?(k.marked="keyword",O(q)):d&&("module"==t||"enum"==t||"type"==t)&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword","enum"==t?O(tt):"type"==t?O(Ue,$("operator"),ve,$(";")):O(U("form"),Oe,$("{"),U("}"),fe,B,B)):d&&"namespace"==t?(k.marked="keyword",O(U("form"),G,q,B)):d&&"abstract"==t?(k.marked="keyword",O(q)):O(U("stat"),oe):"switch"==e?O(U("form"),z,$("{"),U("}","switch"),j,fe,B,B,V):"case"==e?O(G,$(":")):"default"==e?O($(":")):"catch"==e?O(U("form"),P,H,q,B,V):"export"==e?O(U("stat"),ze,B):"import"==e?O(U("stat"),Qe,B):"async"==e?O(q):"@"==t?O(G,q):_(U("stat"),G,$(";"),B)}function H(e){if("("==e)return O(Be,$(")"))}function G(e,t){return K(e,t,!1)}function W(e,t){return K(e,t,!0)}function z(e){return"("!=e?_():O(U(")"),Q,$(")"),B)}function K(e,t,n){if(k.state.fatArrowAt==k.stream.start){var r=n?te:ee;if("("==e)return O(P,U(")"),ce(Be,")"),B,$("=>"),r,V);if("variable"==e)return _(P,Oe,$("=>"),r,V)}var i=n?J:Y;return C.hasOwnProperty(e)?O(i):"function"==e?O(je,i):"class"==e||d&&"interface"==t?(k.marked="keyword",O(U("form"),$e,B)):"keyword c"==e||"async"==e?O(n?W:G):"("==e?O(U(")"),Q,$(")"),B,i):"operator"==e||"spread"==e?O(n?W:G):"["==e?O(U("]"),et,B,i):"{"==e?de(se,"}",null,i):"quasi"==e?_(X,i):"new"==e?O(ne(n)):O()}function Q(e){return e.match(/[;\}\)\],]/)?_():_(G)}function Y(e,t){return","==e?O(Q):J(e,t,!1)}function J(e,t,n){var r=0==n?Y:J,i=0==n?G:W;return"=>"==e?O(P,n?te:ee,V):"operator"==e?/\+\+|--/.test(t)||d&&"!"==t?O(r):d&&"<"==t&&k.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?O(U(">"),ce(ve,">"),B,r):"?"==t?O(G,$(":"),i):O(i):"quasi"==e?_(X,r):";"!=e?"("==e?de(W,")","call",r):"."==e?O(ae,r):"["==e?O(U("]"),Q,$("]"),B,r):d&&"as"==t?(k.marked="keyword",O(ve,r)):"regexp"==e?(k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),O(i)):void 0:void 0}function X(e,t){return"quasi"!=e?_():"${"!=t.slice(t.length-2)?O(X):O(Q,Z)}function Z(e){if("}"==e)return k.marked="string-2",k.state.tokenize=T,O(X)}function ee(e){return w(k.stream,k.state),_("{"==e?q:G)}function te(e){return w(k.stream,k.state),_("{"==e?q:W)}function ne(e){return function(t){return"."==t?O(e?ie:re):"variable"==t&&d?O(Se,e?J:Y):_(e?W:G)}}function re(e,t){if("target"==t)return k.marked="keyword",O(Y)}function ie(e,t){if("target"==t)return k.marked="keyword",O(J)}function oe(e){return":"==e?O(B,q):_(Y,$(";"),B)}function ae(e){if("variable"==e)return k.marked="property",O()}function se(e,t){return"async"==e?(k.marked="property",O(se)):"variable"==e||"keyword"==k.style?(k.marked="property","get"==t||"set"==t?O(le):(d&&k.state.fatArrowAt==k.stream.start&&(n=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+n[0].length),O(ue))):"number"==e||"string"==e?(k.marked=l?"property":k.style+" property",O(ue)):"jsonld-keyword"==e?O(ue):d&&D(t)?(k.marked="keyword",O(se)):"["==e?O(G,pe,$("]"),ue):"spread"==e?O(W,ue):"*"==t?(k.marked="keyword",O(se)):":"==e?_(ue):void 0;var n}function le(e){return"variable"!=e?_(ue):(k.marked="property",O(je))}function ue(e){return":"==e?O(W):"("==e?_(je):void 0}function ce(e,t,n){function i(r,o){if(n?n.indexOf(r)>-1:","==r){var a=k.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),O((function(n,r){return n==t||r==t?_():_(e)}),i)}return r==t||o==t?O():n&&n.indexOf(";")>-1?_(e):O($(t))}return r(i,"proceed"),function(n,r){return n==t||r==t?O():_(e,i)}}function de(e,t,n){for(var r=3;r<arguments.length;r++)k.cc.push(arguments[r]);return O(U(t,n),ce(e,t),B)}function fe(e){return"}"==e?O():_(q,fe)}function pe(e,t){if(d){if(":"==e)return O(ve);if("?"==t)return O(pe)}}function he(e,t){if(d&&(":"==e||"in"==t))return O(ve)}function me(e){if(d&&":"==e)return k.stream.match(/^\s*\w+\s+is\b/,!1)?O(G,ge,ve):O(ve)}function ge(e,t){if("is"==t)return k.marked="keyword",O()}function ve(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(k.marked="keyword",O("typeof"==t?W:ve)):"variable"==e||"void"==t?(k.marked="type",O(xe)):"|"==t||"&"==t?O(ve):"string"==e||"number"==e||"atom"==e?O(xe):"["==e?O(U("]"),ce(ve,"]",","),B,xe):"{"==e?O(U("}"),be,B,xe):"("==e?O(ce(Ce,")"),ye,xe):"<"==e?O(ce(ve,">"),ve):"quasi"==e?_(Te,xe):void 0}function ye(e){if("=>"==e)return O(ve)}function be(e){return e.match(/[\}\)\]]/)?O():","==e||";"==e?O(be):_(Ee,be)}function Ee(e,t){return"variable"==e||"keyword"==k.style?(k.marked="property",O(Ee)):"?"==t||"number"==e||"string"==e?O(Ee):":"==e?O(ve):"["==e?O($("variable"),he,$("]"),Ee):"("==e?_(Ve,Ee):e.match(/[;\}\)\],]/)?void 0:O()}function Te(e,t){return"quasi"!=e?_():"${"!=t.slice(t.length-2)?O(Te):O(ve,we)}function we(e){if("}"==e)return k.marked="string-2",k.state.tokenize=T,O(Te)}function Ce(e,t){return"variable"==e&&k.stream.match(/^\s*[?:]/,!1)||"?"==t?O(Ce):":"==e?O(ve):"spread"==e?O(Ce):_(ve)}function xe(e,t){return"<"==t?O(U(">"),ce(ve,">"),B,xe):"|"==t||"."==e||"&"==t?O(ve):"["==e?O(ve,$("]"),xe):"extends"==t||"implements"==t?(k.marked="keyword",O(ve)):"?"==t?O(ve,$(":"),ve):void 0}function Se(e,t){if("<"==t)return O(U(">"),ce(ve,">"),B,xe)}function Ne(){return _(ve,ke)}function ke(e,t){if("="==t)return O(ve)}function _e(e,t){return"enum"==t?(k.marked="keyword",O(tt)):_(Oe,pe,Ae,De)}function Oe(e,t){return d&&D(t)?(k.marked="keyword",O(Oe)):"variable"==e?(L(t),O()):"spread"==e?O(Oe):"["==e?de(Le,"]"):"{"==e?de(Ie,"}"):void 0}function Ie(e,t){return"variable"!=e||k.stream.match(/^\s*:/,!1)?("variable"==e&&(k.marked="property"),"spread"==e?O(Oe):"}"==e?_():"["==e?O(G,$("]"),$(":"),Ie):O($(":"),Oe,Ae)):(L(t),O(Ae))}function Le(){return _(Oe,Ae)}function Ae(e,t){if("="==t)return O(W)}function De(e){if(","==e)return O(_e)}function Me(e,t){if("keyword b"==e&&"else"==t)return O(U("form","else"),q,B)}function Re(e,t){return"await"==t?O(Re):"("==e?O(U(")"),Fe,B):void 0}function Fe(e){return"var"==e?O(_e,Pe):"variable"==e?O(Pe):_(Pe)}function Pe(e,t){return")"==e?O():";"==e?O(Pe):"in"==t||"of"==t?(k.marked="keyword",O(G,Pe)):_(G,Pe)}function je(e,t){return"*"==t?(k.marked="keyword",O(je)):"variable"==e?(L(t),O(je)):"("==e?O(P,U(")"),ce(Be,")"),B,me,q,V):d&&"<"==t?O(U(">"),ce(Ne,">"),B,je):void 0}function Ve(e,t){return"*"==t?(k.marked="keyword",O(Ve)):"variable"==e?(L(t),O(Ve)):"("==e?O(P,U(")"),ce(Be,")"),B,me,V):d&&"<"==t?O(U(">"),ce(Ne,">"),B,Ve):void 0}function Ue(e,t){return"keyword"==e||"variable"==e?(k.marked="type",O(Ue)):"<"==t?O(U(">"),ce(Ne,">"),B):void 0}function Be(e,t){return"@"==t&&O(G,Be),"spread"==e?O(Be):d&&D(t)?(k.marked="keyword",O(Be)):d&&"this"==e?O(pe,Ae):_(Oe,pe,Ae)}function $e(e,t){return"variable"==e?qe(e,t):He(e,t)}function qe(e,t){if("variable"==e)return L(t),O(He)}function He(e,t){return"<"==t?O(U(">"),ce(Ne,">"),B,He):"extends"==t||"implements"==t||d&&","==e?("implements"==t&&(k.marked="keyword"),O(d?ve:G,He)):"{"==e?O(U("}"),Ge,B):void 0}function Ge(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||d&&D(t))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(k.marked="keyword",O(Ge)):"variable"==e||"keyword"==k.style?(k.marked="property",O(We,Ge)):"number"==e||"string"==e?O(We,Ge):"["==e?O(G,pe,$("]"),We,Ge):"*"==t?(k.marked="keyword",O(Ge)):d&&"("==e?_(Ve,Ge):";"==e||","==e?O(Ge):"}"==e?O():"@"==t?O(G,Ge):void 0}function We(e,t){if("!"==t)return O(We);if("?"==t)return O(We);if(":"==e)return O(ve,Ae);if("="==t)return O(W);var n=k.state.lexical.prev;return _(n&&"interface"==n.info?Ve:je)}function ze(e,t){return"*"==t?(k.marked="keyword",O(Ze,$(";"))):"default"==t?(k.marked="keyword",O(G,$(";"))):"{"==e?O(ce(Ke,"}"),Ze,$(";")):_(q)}function Ke(e,t){return"as"==t?(k.marked="keyword",O($("variable"))):"variable"==e?_(W,Ke):void 0}function Qe(e){return"string"==e?O():"("==e?_(G):"."==e?_(Y):_(Ye,Je,Ze)}function Ye(e,t){return"{"==e?de(Ye,"}"):("variable"==e&&L(t),"*"==t&&(k.marked="keyword"),O(Xe))}function Je(e){if(","==e)return O(Ye,Je)}function Xe(e,t){if("as"==t)return k.marked="keyword",O(Ye)}function Ze(e,t){if("from"==t)return k.marked="keyword",O(G)}function et(e){return"]"==e?O():_(ce(W,"]"))}function tt(){return _(U("form"),Oe,$("{"),U("}"),ce(nt,"}"),B,B)}function nt(){return _(Oe,Ae)}function rt(e,t){return"operator"==e.lastType||","==e.lastType||h.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function it(e,t,n){return t.tokenize==y&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return r(P,"pushcontext"),r(j,"pushblockcontext"),P.lex=j.lex=!0,r(V,"popcontext"),V.lex=!0,r(U,"pushlex"),r(B,"poplex"),B.lex=!0,r($,"expect"),r(q,"statement"),r(H,"maybeCatchBinding"),r(G,"expression"),r(W,"expressionNoComma"),r(z,"parenExpr"),r(K,"expressionInner"),r(Q,"maybeexpression"),r(Y,"maybeoperatorComma"),r(J,"maybeoperatorNoComma"),r(X,"quasi"),r(Z,"continueQuasi"),r(ee,"arrowBody"),r(te,"arrowBodyNoComma"),r(ne,"maybeTarget"),r(re,"target"),r(ie,"targetNoComma"),r(oe,"maybelabel"),r(ae,"property"),r(se,"objprop"),r(le,"getterSetter"),r(ue,"afterprop"),r(ce,"commasep"),r(de,"contCommasep"),r(fe,"block"),r(pe,"maybetype"),r(he,"maybetypeOrIn"),r(me,"mayberettype"),r(ge,"isKW"),r(ve,"typeexpr"),r(ye,"maybeReturnType"),r(be,"typeprops"),r(Ee,"typeprop"),r(Te,"quasiType"),r(we,"continueQuasiType"),r(Ce,"typearg"),r(xe,"afterType"),r(Se,"maybeTypeArgs"),r(Ne,"typeparam"),r(ke,"maybeTypeDefault"),r(_e,"vardef"),r(Oe,"pattern"),r(Ie,"proppattern"),r(Le,"eltpattern"),r(Ae,"maybeAssign"),r(De,"vardefCont"),r(Me,"maybeelse"),r(Re,"forspec"),r(Fe,"forspec1"),r(Pe,"forspec2"),r(je,"functiondef"),r(Ve,"functiondecl"),r(Ue,"typename"),r(Be,"funarg"),r($e,"classExpression"),r(qe,"className"),r(He,"classNameAfter"),r(Ge,"classBody"),r(We,"classfield"),r(ze,"afterExport"),r(Ke,"exportField"),r(Qe,"afterImport"),r(Ye,"importSpec"),r(Je,"maybeMoreImports"),r(Xe,"maybeAs"),r(Ze,"maybeFrom"),r(et,"arrayLiteral"),r(tt,"enumdef"),r(nt,"enummember"),r(rt,"isContinuedStatement"),r(it,"expressionAllowed"),{startState:function(e){var n={tokenize:y,lastType:"sof",cc:[],lexical:new x((e||0)-a,0,"block",!1),localVars:t.localVars,context:t.localVars&&new M(null,null,!1),indented:e||0};return t.globalVars&&"object"==typeof t.globalVars&&(n.globalVars=t.globalVars),n},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),w(e,t)),t.tokenize!=E&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=i&&"--"!=i?n:"incdec",N(t,r,n,i,e))},indent:function(e,n){if(e.tokenize==E||e.tokenize==T)return o.Pass;if(e.tokenize!=y)return 0;var r,i=n&&n.charAt(0),l=e.lexical;if(!/^\s*else\b/.test(n))for(var u=e.cc.length-1;u>=0;--u){var c=e.cc[u];if(c==B)l=l.prev;else if(c!=Me&&c!=V)break}for(;("stat"==l.type||"form"==l.type)&&("}"==i||(r=e.cc[e.cc.length-1])&&(r==Y||r==J)&&!/^[,\.=+\-*:?[\(]/.test(n));)l=l.prev;s&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,f=i==d;return"vardef"==d?l.indented+("operator"==e.lastType||","==e.lastType?l.info.length+1:0):"form"==d&&"{"==i?l.indented:"form"==d?l.indented+a:"stat"==d?l.indented+(rt(e,n)?s||a:0):"switch"!=l.info||f||0==t.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:a):l.indented+(/^(?:case|default)\b/.test(n)?a:2*a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:l,jsonMode:u,expressionAllowed:it,skipExpression:function(e){N(e,"atom","atom","true",new o.StringStream("",2,null))}}})),o.registerHelper("wordChars","javascript",/[\w$]/),o.defineMIME("text/javascript","javascript"),o.defineMIME("text/ecmascript","javascript"),o.defineMIME("application/javascript","javascript"),o.defineMIME("application/x-javascript","javascript"),o.defineMIME("application/ecmascript","javascript"),o.defineMIME("application/json",{name:"javascript",json:!0}),o.defineMIME("application/x-json",{name:"javascript",json:!0}),o.defineMIME("application/manifest+json",{name:"javascript",json:!0}),o.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),o.defineMIME("text/typescript",{name:"javascript",typescript:!0}),o.defineMIME("application/typescript",{name:"javascript",typescript:!0});var s=i({__proto__:null,default:a.exports},[a.exports]);e.j=s})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.c=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}r(i,"_mergeNamespaces");var o={exports:{}};!function(e){var t={},n=/[^\s\u00a0]/,i=e.Pos,o=e.cmpPos;function a(e){var t=e.search(n);return-1==t?0:t}function s(e,t,n){return/\bstring\b/.test(e.getTokenTypeAt(i(t.line,0)))&&!/^[\'\"\`]/.test(n)}function l(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}r(a,"firstNonWS"),e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",(function(e){e||(e=t);for(var n=1/0,r=this.listSelections(),o=null,a=r.length-1;a>=0;a--){var s=r[a].from(),l=r[a].to();s.line>=n||(l.line>=n&&(l=i(n,0)),n=s.line,null==o?this.uncomment(s,l,e)?o="un":(this.lineComment(s,l,e),o="line"):"un"==o?this.uncomment(s,l,e):this.lineComment(s,l,e))}})),r(s,"probablyInsideString"),r(l,"getMode"),e.defineExtension("lineComment",(function(e,r,o){o||(o=t);var u=this,c=l(u,e),d=u.getLine(e.line);if(null!=d&&!s(u,e,d)){var f=o.lineComment||c.lineComment;if(f){var p=Math.min(0!=r.ch||r.line==e.line?r.line+1:r.line,u.lastLine()+1),h=null==o.padding?" ":o.padding,m=o.commentBlankLines||e.line==r.line;u.operation((function(){if(o.indent){for(var t=null,r=e.line;r<p;++r){var s=(l=u.getLine(r)).slice(0,a(l));(null==t||t.length>s.length)&&(t=s)}for(r=e.line;r<p;++r){var l=u.getLine(r),c=t.length;(m||n.test(l))&&(l.slice(0,c)!=t&&(c=a(l)),u.replaceRange(t+f+h,i(r,0),i(r,c)))}}else for(r=e.line;r<p;++r)(m||n.test(u.getLine(r)))&&u.replaceRange(f+h,i(r,0))}))}else(o.blockCommentStart||c.blockCommentStart)&&(o.fullLines=!0,u.blockComment(e,r,o))}})),e.defineExtension("blockComment",(function(e,r,a){a||(a=t);var s=this,u=l(s,e),c=a.blockCommentStart||u.blockCommentStart,d=a.blockCommentEnd||u.blockCommentEnd;if(c&&d){if(!/\bcomment\b/.test(s.getTokenTypeAt(i(e.line,0)))){var f=Math.min(r.line,s.lastLine());f!=e.line&&0==r.ch&&n.test(s.getLine(f))&&--f;var p=null==a.padding?" ":a.padding;e.line>f||s.operation((function(){if(0!=a.fullLines){var t=n.test(s.getLine(f));s.replaceRange(p+d,i(f)),s.replaceRange(c+p,i(e.line,0));var l=a.blockCommentLead||u.blockCommentLead;if(null!=l)for(var h=e.line+1;h<=f;++h)(h!=f||t)&&s.replaceRange(l+p,i(h,0))}else{var m=0==o(s.getCursor("to"),r),g=!s.somethingSelected();s.replaceRange(d,r),m&&s.setSelection(g?r:s.getCursor("from"),r),s.replaceRange(c,e)}}))}}else(a.lineComment||u.lineComment)&&0!=a.fullLines&&s.lineComment(e,r,a)})),e.defineExtension("uncomment",(function(e,r,o){o||(o=t);var a,s=this,u=l(s,e),c=Math.min(0!=r.ch||r.line==e.line?r.line:r.line-1,s.lastLine()),d=Math.min(e.line,c),f=o.lineComment||u.lineComment,p=[],h=null==o.padding?" ":o.padding;e:if(f){for(var m=d;m<=c;++m){var g=s.getLine(m),v=g.indexOf(f);if(v>-1&&!/comment/.test(s.getTokenTypeAt(i(m,v+1)))&&(v=-1),-1==v&&n.test(g))break e;if(v>-1&&n.test(g.slice(0,v)))break e;p.push(g)}if(s.operation((function(){for(var e=d;e<=c;++e){var t=p[e-d],n=t.indexOf(f),r=n+f.length;n<0||(t.slice(r,r+h.length)==h&&(r+=h.length),a=!0,s.replaceRange("",i(e,n),i(e,r)))}})),a)return!0}var y=o.blockCommentStart||u.blockCommentStart,b=o.blockCommentEnd||u.blockCommentEnd;if(!y||!b)return!1;var E=o.blockCommentLead||u.blockCommentLead,T=s.getLine(d),w=T.indexOf(y);if(-1==w)return!1;var C=c==d?T:s.getLine(c),x=C.indexOf(b,c==d?w+y.length:0),S=i(d,w+1),N=i(c,x+1);if(-1==x||!/comment/.test(s.getTokenTypeAt(S))||!/comment/.test(s.getTokenTypeAt(N))||s.getRange(S,N,"\n").indexOf(b)>-1)return!1;var k=T.lastIndexOf(y,e.ch),_=-1==k?-1:T.slice(0,e.ch).indexOf(b,k+y.length);if(-1!=k&&-1!=_&&_+b.length!=e.ch)return!1;_=C.indexOf(b,r.ch);var O=C.slice(r.ch).lastIndexOf(y,_-r.ch);return k=-1==_||-1==O?-1:r.ch+O,(-1==_||-1==k||k==r.ch)&&(s.operation((function(){s.replaceRange("",i(c,x-(h&&C.slice(x-h.length,x)==h?h.length:0)),i(c,x+b.length));var e=w+y.length;if(h&&T.slice(e,e+h.length)==h&&(e+=h.length),s.replaceRange("",i(d,w),i(d,e)),E)for(var t=d+1;t<=c;++t){var r=s.getLine(t),o=r.indexOf(E);if(-1!=o&&!n.test(r.slice(0,o))){var a=o+E.length;h&&r.slice(a,a+h.length)==h&&(a+=h.length),s.replaceRange("",i(t,o),i(t,a))}}})),!0)}))}(t.a.exports);var a=i({__proto__:null,default:o.exports},[o.exports]);e.c=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(0),n(13),n(1),n(5),n(20),n(8),n(2),n(3),n(4)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,s,l){"use strict";var u=Object.defineProperty,c=(e,t)=>u(e,"name",{value:t,configurable:!0});function d(e){let t;return p(e,e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}}),t}function f(e,t,r){return r===o.S.name&&e.getQueryType()===t?o.S:r===o.T.name&&e.getQueryType()===t?o.T:r===o.a.name&&(0,n.isCompositeType)(t)?o.a:"getFields"in t?t.getFields()[r]:null}function p(e,t){const n=[];let r=e;for(;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}function h(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=e[t[i]];return r}function m(e,t){return g(t,y(e.string))}function g(e,t){return t?v(v(e.map(e=>({proximity:b(y(e.label),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length).map(e=>e.entry):v(e,e=>!e.isDeprecated)}function v(e,t){const n=e.filter(t);return 0===n.length?e:n}function y(e){return e.toLowerCase().replace(/\W/g,"")}function b(e,t){let n=E(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function E(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}c(d,"getDefinitionState"),c(f,"getFieldDef"),c(p,"forEachState"),c(h,"objectValues"),c(m,"hintList"),c(g,"filterAndSortList"),c(v,"filterNonEmpty"),c(y,"normalizeText"),c(b,"getProximity"),c(E,"lexicalDistance");const T={command:"editor.action.triggerSuggest",title:"Suggestions"},w=c(e=>{const t=[];if(e)try{(0,n.visit)((0,n.parse)(e),{FragmentDefinition(e){t.push(e)}})}catch(e){return[]}return t},"collectFragmentDefs");function C(e,t,i,o,a,s){var l;const u=Object.assign(Object.assign({},s),{schema:e}),c=o||R(t,i),d="Invalid"===c.state.kind?c.state.prevState:c.state;if(!d)return[];const f=d.kind,p=d.step,g=j(e,c.state);if(f===r.R.DOCUMENT)return m(c,[{label:"query",kind:r.C.Function},{label:"mutation",kind:r.C.Function},{label:"subscription",kind:r.C.Function},{label:"fragment",kind:r.C.Function},{label:"{",kind:r.C.Constructor}]);if(f===r.R.IMPLEMENTS||f===r.R.NAMED_TYPE&&(null===(l=d.prevState)||void 0===l?void 0:l.kind)===r.R.IMPLEMENTS)return k(c,d,e,t,g);if(f===r.R.SELECTION_SET||f===r.R.FIELD||f===r.R.ALIASED_FIELD)return S(c,g,u);if(f===r.R.ARGUMENTS||f===r.R.ARGUMENT&&0===p){const e=g.argDefs;if(e)return m(c,e.map(e=>{var t;return{label:e.name,insertText:e.name+": ",command:T,detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:r.C.Variable,type:e.type}}))}if((f===r.R.OBJECT_VALUE||f===r.R.OBJECT_FIELD&&0===p)&&g.objectFieldDefs){const e=h(g.objectFieldDefs),t=f===r.R.OBJECT_VALUE?r.C.Value:r.C.Field;return m(c,e.map(e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,kind:t,type:e.type}}))}if(f===r.R.ENUM_VALUE||f===r.R.LIST_VALUE&&1===p||f===r.R.OBJECT_FIELD&&2===p||f===r.R.ARGUMENT&&2===p)return N(c,g,t,e);if(f===r.R.VARIABLE&&1===p){const r=(0,n.getNamedType)(g.inputType);return m(c,L(t,e,c).filter(e=>e.detail===(null==r?void 0:r.name)))}return f===r.R.TYPE_CONDITION&&1===p||f===r.R.NAMED_TYPE&&null!=d.prevState&&d.prevState.kind===r.R.TYPE_CONDITION?_(c,g,e):f===r.R.FRAGMENT_SPREAD&&1===p?O(c,g,e,t,Array.isArray(a)?a:w(a)):f===r.R.VARIABLE_DEFINITION&&2===p||f===r.R.LIST_TYPE&&1===p||f===r.R.NAMED_TYPE&&d.prevState&&(d.prevState.kind===r.R.VARIABLE_DEFINITION||d.prevState.kind===r.R.LIST_TYPE||d.prevState.kind===r.R.NON_NULL_TYPE)?D(c,e):f===r.R.DIRECTIVE?M(c,d,e):[]}c(C,"getAutocompleteSuggestions");const x=c(e=>{const t=e.type;if((0,n.isCompositeType)(t))return" {\n  $1\n}";if((0,n.isListType)(t)&&(0,n.isCompositeType)(t.ofType))return" {\n  $1\n}";if((0,n.isNonNullType)(t)){if((0,n.isCompositeType)(t.ofType))return" {\n  $1\n}";if((0,n.isListType)(t.ofType)&&(0,n.isCompositeType)(t.ofType.ofType))return" {\n  $1\n}"}return null},"getInsertText");function S(e,t,i){var o;if(t.parentType){const a=t.parentType;let s=[];return"getFields"in a&&(s=h(a.getFields())),(0,n.isCompositeType)(a)&&s.push(n.TypeNameMetaFieldDef),a===(null===(o=null==i?void 0:i.schema)||void 0===o?void 0:o.getQueryType())&&s.push(n.SchemaMetaFieldDef,n.TypeMetaFieldDef),m(e,s.map((e,t)=>{var n;const i={sortText:String(t)+e.name,label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:r.C.Field,type:e.type},o=x(e);return o&&(i.insertText=e.name+o,i.insertTextFormat=r.I.Snippet,i.command=T),i}))}return[]}function N(e,t,i,o){const a=(0,n.getNamedType)(t.inputType),s=L(i,o,e).filter(e=>e.detail===a.name);return a instanceof n.GraphQLEnumType?m(e,a.getValues().map(e=>{var t;return{label:e.name,detail:String(a),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:r.C.EnumMember,type:a}}).concat(s)):a===n.GraphQLBoolean?m(e,s.concat([{label:"true",detail:String(n.GraphQLBoolean),documentation:"Not false.",kind:r.C.Variable,type:n.GraphQLBoolean},{label:"false",detail:String(n.GraphQLBoolean),documentation:"Not true.",kind:r.C.Variable,type:n.GraphQLBoolean}])):s}function k(e,t,i,o,a){if(t.needsSeperator)return[];const s=h(i.getTypeMap()).filter(n.isInterfaceType),l=s.map(e=>{let{name:t}=e;return t}),u=new Set;F(o,(e,t)=>{var o,s,c,d,f;if(t.name&&(t.kind!==r.R.INTERFACE_DEF||l.includes(t.name)||u.add(t.name),t.kind===r.R.NAMED_TYPE&&(null===(o=t.prevState)||void 0===o?void 0:o.kind)===r.R.IMPLEMENTS))if(a.interfaceDef){if(null===(s=a.interfaceDef)||void 0===s?void 0:s.getInterfaces().find(e=>{let{name:n}=e;return n===t.name}))return;const e=i.getType(t.name),r=null===(c=a.interfaceDef)||void 0===c?void 0:c.toConfig();a.interfaceDef=new n.GraphQLInterfaceType(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new n.GraphQLInterfaceType({name:t.name,fields:{}})]}))}else if(a.objectTypeDef){if(null===(d=a.objectTypeDef)||void 0===d?void 0:d.getInterfaces().find(e=>{let{name:n}=e;return n===t.name}))return;const e=i.getType(t.name),r=null===(f=a.objectTypeDef)||void 0===f?void 0:f.toConfig();a.objectTypeDef=new n.GraphQLObjectType(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new n.GraphQLInterfaceType({name:t.name,fields:{}})]}))}});const c=a.interfaceDef||a.objectTypeDef,d=((null==c?void 0:c.getInterfaces())||[]).map(e=>{let{name:t}=e;return t});return m(e,s.concat([...u].map(e=>({name:e}))).filter(e=>{let{name:t}=e;return t!==(null==c?void 0:c.name)&&!d.includes(t)}).map(e=>{const t={label:e.name,kind:r.C.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t}))}function _(e,t,i,o){let a;if(t.parentType)if((0,n.isAbstractType)(t.parentType)){const e=(0,n.assertAbstractType)(t.parentType),r=i.getPossibleTypes(e),o=Object.create(null);r.forEach(e=>{e.getInterfaces().forEach(e=>{o[e.name]=e})}),a=r.concat(h(o))}else a=[t.parentType];else a=h(i.getTypeMap()).filter(n.isCompositeType);return m(e,a.map(e=>{const t=(0,n.getNamedType)(e);return{label:String(e),documentation:(null==t?void 0:t.description)||"",kind:r.C.Field}}))}function O(e,t,i,o,a){if(!o)return[];const s=i.getTypeMap(),l=d(e.state),u=A(o);return a&&a.length>0&&u.push(...a),m(e,u.filter(e=>s[e.typeCondition.name.value]&&!(l&&l.kind===r.R.FRAGMENT_DEFINITION&&l.name===e.name.value)&&(0,n.isCompositeType)(t.parentType)&&(0,n.isCompositeType)(s[e.typeCondition.name.value])&&(0,n.doTypesOverlap)(i,t.parentType,s[e.typeCondition.name.value])).map(e=>({label:e.name.value,detail:String(s[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,kind:r.C.Field,type:s[e.typeCondition.name.value]})))}c(S,"getSuggestionsForFieldNames"),c(N,"getSuggestionsForInputValues"),c(k,"getSuggestionsForImplements"),c(_,"getSuggestionsForFragmentTypeConditions"),c(O,"getSuggestionsForFragmentSpread");const I=c((e,t)=>{var n,r,i,o,a,s,l,u,c,d;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(i=null===(r=e.prevState)||void 0===r?void 0:r.prevState)||void 0===i?void 0:i.kind)===t?e.prevState.prevState:(null===(s=null===(a=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===a?void 0:a.prevState)||void 0===s?void 0:s.kind)===t?e.prevState.prevState.prevState:(null===(d=null===(c=null===(u=null===(l=e.prevState)||void 0===l?void 0:l.prevState)||void 0===u?void 0:u.prevState)||void 0===c?void 0:c.prevState)||void 0===d?void 0:d.kind)===t?e.prevState.prevState.prevState.prevState:void 0},"getParentDefinition");function L(e,t,n){let i,o=null;const a=Object.create({});return F(e,(e,s)=>{if((null==s?void 0:s.kind)===r.R.VARIABLE&&s.name&&(o=s.name),(null==s?void 0:s.kind)===r.R.NAMED_TYPE&&o){const e=I(s,r.R.TYPE);(null==e?void 0:e.type)&&(i=t.getType(null==e?void 0:e.type))}o&&i&&(a[o]||(a[o]={detail:i.toString(),insertText:"$"===n.string?o:"$"+o,label:o,type:i,kind:r.C.Variable},o=null,i=null))}),h(a)}function A(e){const t=[];return F(e,(e,i)=>{i.kind===r.R.FRAGMENT_DEFINITION&&i.name&&i.type&&t.push({kind:r.R.FRAGMENT_DEFINITION,name:{kind:n.Kind.NAME,value:i.name},selectionSet:{kind:r.R.SELECTION_SET,selections:[]},typeCondition:{kind:r.R.NAMED_TYPE,name:{kind:n.Kind.NAME,value:i.type}}})}),t}function D(e,t,i){return m(e,h(t.getTypeMap()).filter(n.isInputType).map(e=>({label:e.name,documentation:e.description,kind:r.C.Variable})))}function M(e,t,n,i){var o;return(null===(o=t.prevState)||void 0===o?void 0:o.kind)?m(e,n.getDirectives().filter(e=>P(t.prevState,e)).map(e=>({label:e.name,documentation:e.description||"",kind:r.C.Function}))):[]}function R(e,t){let n=null,r=null,i=null;const o=F(e,(e,o,a,s)=>{if(s===t.line&&e.getCurrentPosition()>=t.character)return n=a,r=Object.assign({},o),i=e.current(),"BREAK"});return{start:o.start,end:o.end,string:i||o.string,state:r||o.state,style:n||o.style}}function F(e,t){const n=e.split("\n"),o=(0,r.o)();let a=o.startState(),s="",l=new i.C("");for(let e=0;e<n.length;e++){for(l=new i.C(n[e]);!l.eol()&&(s=o.token(l,a),"BREAK"!==t(l,a,s,e)););t(l,a,s,e),a.kind||(a=o.startState())}return{start:l.getStartOfToken(),end:l.getCurrentPosition(),string:l.current(),state:a,style:s}}function P(e,t){var i;if(!e||!e.kind)return!1;const o=e.kind,a=t.locations;switch(o){case r.R.QUERY:return-1!==a.indexOf(n.DirectiveLocation.QUERY);case r.R.MUTATION:return-1!==a.indexOf(n.DirectiveLocation.MUTATION);case r.R.SUBSCRIPTION:return-1!==a.indexOf(n.DirectiveLocation.SUBSCRIPTION);case r.R.FIELD:case r.R.ALIASED_FIELD:return-1!==a.indexOf(n.DirectiveLocation.FIELD);case r.R.FRAGMENT_DEFINITION:return-1!==a.indexOf(n.DirectiveLocation.FRAGMENT_DEFINITION);case r.R.FRAGMENT_SPREAD:return-1!==a.indexOf(n.DirectiveLocation.FRAGMENT_SPREAD);case r.R.INLINE_FRAGMENT:return-1!==a.indexOf(n.DirectiveLocation.INLINE_FRAGMENT);case r.R.SCHEMA_DEF:return-1!==a.indexOf(n.DirectiveLocation.SCHEMA);case r.R.SCALAR_DEF:return-1!==a.indexOf(n.DirectiveLocation.SCALAR);case r.R.OBJECT_TYPE_DEF:return-1!==a.indexOf(n.DirectiveLocation.OBJECT);case r.R.FIELD_DEF:return-1!==a.indexOf(n.DirectiveLocation.FIELD_DEFINITION);case r.R.INTERFACE_DEF:return-1!==a.indexOf(n.DirectiveLocation.INTERFACE);case r.R.UNION_DEF:return-1!==a.indexOf(n.DirectiveLocation.UNION);case r.R.ENUM_DEF:return-1!==a.indexOf(n.DirectiveLocation.ENUM);case r.R.ENUM_VALUE:return-1!==a.indexOf(n.DirectiveLocation.ENUM_VALUE);case r.R.INPUT_DEF:return-1!==a.indexOf(n.DirectiveLocation.INPUT_OBJECT);case r.R.INPUT_VALUE_DEF:switch(null===(i=e.prevState)||void 0===i?void 0:i.kind){case r.R.ARGUMENTS_DEF:return-1!==a.indexOf(n.DirectiveLocation.ARGUMENT_DEFINITION);case r.R.INPUT_DEF:return-1!==a.indexOf(n.DirectiveLocation.INPUT_FIELD_DEFINITION)}}return!1}function j(e,t){let i,o,a,s,l,u,c,d,h,m,g;return p(t,t=>{var p;switch(t.kind){case r.R.QUERY:case"ShortQuery":m=e.getQueryType();break;case r.R.MUTATION:m=e.getMutationType();break;case r.R.SUBSCRIPTION:m=e.getSubscriptionType();break;case r.R.INLINE_FRAGMENT:case r.R.FRAGMENT_DEFINITION:t.type&&(m=e.getType(t.type));break;case r.R.FIELD:case r.R.ALIASED_FIELD:m&&t.name?(l=h?f(e,h,t.name):null,m=l?l.type:null):l=null;break;case r.R.SELECTION_SET:h=(0,n.getNamedType)(m);break;case r.R.DIRECTIVE:a=t.name?e.getDirective(t.name):null;break;case r.R.INTERFACE_DEF:t.name&&(c=null,g=new n.GraphQLInterfaceType({name:t.name,interfaces:[],fields:{}}));break;case r.R.OBJECT_TYPE_DEF:t.name&&(g=null,c=new n.GraphQLObjectType({name:t.name,interfaces:[],fields:{}}));break;case r.R.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case r.R.FIELD:o=l&&l.args;break;case r.R.DIRECTIVE:o=a&&a.args;break;case r.R.ALIASED_FIELD:{const n=null===(p=t.prevState)||void 0===p?void 0:p.name;if(!n){o=null;break}const r=h?f(e,h,n):null;if(!r){o=null;break}o=r.args;break}default:o=null}else o=null;break;case r.R.ARGUMENT:if(o)for(let e=0;e<o.length;e++)if(o[e].name===t.name){i=o[e];break}u=null==i?void 0:i.type;break;case r.R.ENUM_VALUE:const v=(0,n.getNamedType)(u);s=v instanceof n.GraphQLEnumType?v.getValues().find(e=>e.value===t.name):null;break;case r.R.LIST_VALUE:const y=(0,n.getNullableType)(u);u=y instanceof n.GraphQLList?y.ofType:null;break;case r.R.OBJECT_VALUE:const b=(0,n.getNamedType)(u);d=b instanceof n.GraphQLInputObjectType?b.getFields():null;break;case r.R.OBJECT_FIELD:const E=t.name&&d?d[t.name]:null;u=null==E?void 0:E.type;break;case r.R.NAMED_TYPE:t.name&&(m=e.getType(t.name))}}),{argDef:i,argDefs:o,directiveDef:a,enumValue:s,fieldDef:l,inputType:u,objectFieldDefs:d,parentType:h,type:m,interfaceDef:g,objectTypeDef:c}}c(L,"getVariableCompletions"),c(A,"getFragmentDefinitions"),c(D,"getSuggestionsForVariableDefinition"),c(M,"getSuggestionsForDirective"),c(R,"getTokenAtPosition"),c(F,"runOnlineParser"),c(P,"canUseDirective"),c(j,"getTypeInfo"),e.C.registerHelper("hint","graphql",(t,n)=>{const r=n.schema;if(!r)return;const o=t.getCursor(),a=t.getTokenAt(o),s=null!==a.type&&/"|\w/.test(a.string[0])?a.start:a.end,l=new i.P(o.line,s),u={list:C(r,t.getValue(),l,a,n.externalFragments).map(e=>({text:e.label,type:e.type,description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason})),from:{line:o.line,ch:s},to:{line:o.line,ch:a.end}};return(null==u?void 0:u.list)&&u.list.length>0&&(u.from=e.C.Pos(u.from.line,u.from.ch),u.to=e.C.Pos(u.to.line,u.to.ch),e.C.signal(t,"hasCompletion",t,u,a)),u})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(0),n(1),n(5),n(20),n(2),n(3),n(4)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a){"use strict";var s=Object.defineProperty,l=(e,t)=>s(e,"name",{value:t,configurable:!0});const u=[t.LoneSchemaDefinitionRule,t.UniqueOperationTypesRule,t.UniqueTypeNamesRule,t.UniqueEnumValueNamesRule,t.UniqueFieldDefinitionNamesRule,t.UniqueDirectiveNamesRule,t.KnownTypeNamesRule,t.KnownDirectivesRule,t.UniqueDirectivesPerLocationRule,t.PossibleTypeExtensionsRule,t.UniqueArgumentNamesRule,t.UniqueInputFieldNamesRule];function c(e,n,r,i,o){const a=t.specifiedRules.filter(e=>e!==t.NoUnusedFragmentsRule&&e!==t.ExecutableDefinitionsRule&&(!i||e!==t.KnownFragmentNamesRule));return r&&Array.prototype.push.apply(a,r),o&&Array.prototype.push.apply(a,u),(0,t.validate)(e,n,a).filter(e=>{if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){const n=e.nodes[0];if(n&&n.kind===t.Kind.DIRECTIVE){const e=n.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0})}l(c,"validateWithCustomRules");const d="Error",f="Warning",p="Information",h="Hint",m={[d]:1,[f]:2,[p]:3,[h]:4},g=l((e,t)=>{if(!e)throw new Error(t)},"invariant");function v(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;var a,s;let l=null;o&&(e+="string"==typeof o?"\n\n"+o:"\n\n"+o.reduce((e,n)=>e+=(0,t.print)(n)+"\n\n",""));try{l=(0,t.parse)(e)}catch(n){if(n instanceof t.GraphQLError){const t=T(null!==(s=null===(a=n.locations)||void 0===a?void 0:a[0])&&void 0!==s?s:{line:0,column:0},e);return[{severity:m.Error,message:n.message,source:"GraphQL: Syntax",range:t}]}throw n}return y(l,n,r,i)}function y(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if(!n)return[];const o=b(c(n,e,r,i),e=>E(e,m.Error,"Validation")),a=b((0,t.validate)(n,e,[t.NoDeprecatedCustomRule]),e=>E(e,m.Warning,"Deprecation"));return o.concat(a)}function b(e,t){return Array.prototype.concat.apply([],e.map(t))}function E(e,t,n){if(!e.nodes)return[];const i=[];return e.nodes.forEach(o=>{const a="Variable"!==o.kind&&"name"in o&&void 0!==o.name?o.name:"variable"in o&&void 0!==o.variable?o.variable:o;if(a){g(e.locations,"GraphQL validation error requires locations.");const o=e.locations[0],s=w(a),l=o.column+(s.end-s.start);i.push({source:"GraphQL: "+n,message:e.message,severity:t,range:new r.R(new r.P(o.line-1,o.column-1),new r.P(o.line-1,l))})}}),i}function T(e,t){const i=(0,n.o)(),o=i.startState(),a=t.split("\n");g(a.length>=e.line,"Query text must have more lines than where the error happened");let s=null;for(let t=0;t<e.line;t++)for(s=new r.C(a[t]);!s.eol()&&"invalidchar"!==i.token(s,o););g(s,"Expected Parser stream to be available.");const l=e.line-1,u=s.getStartOfToken(),c=s.getCurrentPosition();return new r.R(new r.P(l,u),new r.P(l,c))}function w(e){const t=e.loc;return g(t,"Expected ASTNode to have a location."),t}l(v,"getDiagnostics"),l(y,"validateQuery"),l(b,"mapCat"),l(E,"annotations"),l(T,"getRange"),l(w,"getLocation");const C=["error","warning","information","hint"],x={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};e.C.registerHelper("lint","graphql",(t,n)=>v(t,n.schema,n.validationRules,void 0,n.externalFragments).map(t=>({message:t.message,severity:t.severity?C[t.severity-1]:C[0],type:t.source?x[t.source]:void 0,from:e.C.Pos(t.range.start.line,t.range.start.character),to:e.C.Pos(t.range.end.line,t.range.end.character)})))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(1),n(0),n(21),n(22),n(2),n(3),n(4),n(8),n(9)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,s,l){"use strict";var u=Object.defineProperty,c=(e,t)=>u(e,"name",{value:t,configurable:!0});function d(e,t,n){f(e,t,n),g(e,t,n,t.type)}function f(e,t,r){var i;E(e,(null===(i=t.fieldDef)||void 0===i?void 0:i.name)||"","field-name",r,(0,n.a)(t))}function p(e,t,r){var i;E(e,"@"+((null===(i=t.directiveDef)||void 0===i?void 0:i.name)||""),"directive-name",r,(0,n.b)(t))}function h(e,t,r){var i;E(e,(null===(i=t.argDef)||void 0===i?void 0:i.name)||"","arg-name",r,(0,n.c)(t)),g(e,t,r,t.inputType)}function m(e,t,r){var i;const o=(null===(i=t.enumValue)||void 0===i?void 0:i.name)||"";v(e,t,r,t.inputType),E(e,"."),E(e,o,"enum-value",r,(0,n.d)(t))}function g(t,r,i,o){const a=document.createElement("span");a.className="type-name-pill",o instanceof e.GraphQLNonNull?(v(a,r,i,o.ofType),E(a,"!")):o instanceof e.GraphQLList?(E(a,"["),v(a,r,i,o.ofType),E(a,"]")):E(a,(null==o?void 0:o.name)||"","type-name",i,(0,n.e)(r,o)),t.appendChild(a)}function v(t,r,i,o){o instanceof e.GraphQLNonNull?(v(t,r,i,o.ofType),E(t,"!")):o instanceof e.GraphQLList?(E(t,"["),v(t,r,i,o.ofType),E(t,"]")):E(t,(null==o?void 0:o.name)||"","type-name",i,(0,n.e)(r,o))}function y(e,t,n){const r=n.description;if(r){const n=document.createElement("div");n.className="info-description",t.renderDescription?n.innerHTML=t.renderDescription(r):n.appendChild(document.createTextNode(r)),e.appendChild(n)}b(e,t,n)}function b(e,t,n){const r=n.deprecationReason;if(r){const n=document.createElement("div");n.className="info-deprecation",e.appendChild(n);const i=document.createElement("span");i.className="info-deprecation-label",i.appendChild(document.createTextNode("Deprecated")),n.appendChild(i);const o=document.createElement("div");o.className="info-deprecation-reason",t.renderDescription?o.innerHTML=t.renderDescription(r):o.appendChild(document.createTextNode(r)),n.appendChild(o)}}function E(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{onClick:null},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(n){const o=r.onClick;let a;o?(a=document.createElement("a"),a.href="javascript:void 0",a.addEventListener("click",e=>{o(i,e)})):a=document.createElement("span"),a.className=n,a.appendChild(document.createTextNode(t)),e.appendChild(a)}else e.appendChild(document.createTextNode(t))}t.C.registerHelper("info","graphql",(e,t)=>{if(!t.schema||!e.state)return;const r=e.state,i=r.kind,o=r.step,a=(0,n.g)(t.schema,e.state);if("Field"===i&&0===o&&a.fieldDef||"AliasedField"===i&&2===o&&a.fieldDef){const e=document.createElement("div");e.className="CodeMirror-info-header",d(e,a,t);const n=document.createElement("div");return n.appendChild(e),y(n,t,a.fieldDef),n}if("Directive"===i&&1===o&&a.directiveDef){const e=document.createElement("div");e.className="CodeMirror-info-header",p(e,a,t);const n=document.createElement("div");return n.appendChild(e),y(n,t,a.directiveDef),n}if("Argument"===i&&0===o&&a.argDef){const e=document.createElement("div");e.className="CodeMirror-info-header",h(e,a,t);const n=document.createElement("div");return n.appendChild(e),y(n,t,a.argDef),n}if("EnumValue"===i&&a.enumValue&&a.enumValue.description){const e=document.createElement("div");e.className="CodeMirror-info-header",m(e,a,t);const n=document.createElement("div");return n.appendChild(e),y(n,t,a.enumValue),n}if("NamedType"===i&&a.type&&a.type.description){const e=document.createElement("div");e.className="CodeMirror-info-header",v(e,a,t,a.type);const n=document.createElement("div");return n.appendChild(e),y(n,t,a.type),n}}),c(d,"renderField"),c(f,"renderQualifiedField"),c(p,"renderDirective"),c(h,"renderArg"),c(m,"renderEnumValue"),c(g,"renderTypeAnnotation"),c(v,"renderType"),c(y,"renderDescription"),c(b,"renderDeprecation"),c(E,"text")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(0),n(21),n(2),n(3),n(1),n(4),n(8),n(9)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,s){"use strict";var l=Object.defineProperty,u=(e,t)=>l(e,"name",{value:t,configurable:!0});function c(e,t){const n=t.target||t.srcElement;if(!(n instanceof HTMLElement))return;if("SPAN"!==(null==n?void 0:n.nodeName))return;const r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&m(e)}function d(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&g(e):e.state.jump.cursor=null}function f(t,n){if(t.state.jump.isHoldingModifier||!h(n.key))return;t.state.jump.isHoldingModifier=!0,t.state.jump.cursor&&m(t);const r=u(a=>{a.code===n.code&&(t.state.jump.isHoldingModifier=!1,t.state.jump.marker&&g(t),e.C.off(document,"keyup",r),e.C.off(document,"click",i),t.off("mousedown",o))},"onKeyUp"),i=u(e=>{const n=t.state.jump.destination;n&&t.state.jump.options.onClick(n,e)},"onClick"),o=u((e,n)=>{t.state.jump.destination&&(n.codemirrorIgnore=!0)},"onMouseDown");e.C.on(document,"keyup",r),e.C.on(document,"click",i),t.on("mousedown",o)}e.C.defineOption("jump",!1,(t,n,r)=>{if(r&&r!==e.C.Init){const n=t.state.jump.onMouseOver;e.C.off(t.getWrapperElement(),"mouseover",n);const r=t.state.jump.onMouseOut;e.C.off(t.getWrapperElement(),"mouseout",r),e.C.off(document,"keydown",t.state.jump.onKeyDown),delete t.state.jump}if(n){const r=t.state.jump={options:n,onMouseOver:c.bind(null,t),onMouseOut:d.bind(null,t),onKeyDown:f.bind(null,t)};e.C.on(t.getWrapperElement(),"mouseover",r.onMouseOver),e.C.on(t.getWrapperElement(),"mouseout",r.onMouseOut),e.C.on(document,"keydown",r.onKeyDown)}}),u(c,"onMouseOver"),u(d,"onMouseOut"),u(f,"onKeyDown");const p="undefined"!=typeof navigator&&navigator&&-1!==navigator.appVersion.indexOf("Mac");function h(e){return e===(p?"Meta":"Control")}function m(e){if(e.state.jump.marker)return;const t=e.state.jump.cursor,n=e.coordsChar(t),r=e.getTokenAt(n,!0),i=e.state.jump.options,o=i.getDestination||e.getHelper(n,"jump");if(o){const t=o(r,i,e);if(t){const i=e.markText({line:n.line,ch:r.start},{line:n.line,ch:r.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=i,e.state.jump.destination=t}}}function g(e){const t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}u(h,"isJumpModifier"),u(m,"enableJumpMode"),u(g,"disableJumpMode"),e.C.registerHelper("jump","graphql",(e,n)=>{if(!n.schema||!n.onClick||!e.state)return;const r=e.state,i=r.kind,o=r.step,a=(0,t.g)(n.schema,r);return"Field"===i&&0===o&&a.fieldDef||"AliasedField"===i&&2===o&&a.fieldDef?(0,t.a)(a):"Directive"===i&&1===o&&a.directiveDef?(0,t.b)(a):"Argument"===i&&0===o&&a.argDef?(0,t.c)(a):"EnumValue"===i&&a.enumValue?(0,t.d)(a):"NamedType"===i&&a.type?(0,t.e)(a):void 0})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(0),n(1),n(5),n(2),n(3),n(4)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";var a=Object.defineProperty,s=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t){var n,r;const i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}s(l,"indent");const u=s(e=>{const t=(0,n.o)({eatWhitespace:e=>e.eatWhile(n.i),lexRules:n.L,parseRules:n.P,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:l,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}},"graphqlModeFactory");e.C.defineMode("graphql",u)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(0),n(1),n(9),n(2),n(3),n(4)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";var a=Object.defineProperty,s=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t,n){const r=u(n,d(t.string));if(!r)return;const i=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:r,from:{line:e.line,ch:i},to:{line:e.line,ch:t.end}}}function u(e,t){return t?c(c(e.map(e=>({proximity:f(d(e.text),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length).map(e=>e.entry):c(e,e=>!e.isDeprecated)}function c(e,t){const n=e.filter(t);return 0===n.length?e:n}function d(e){return e.toLowerCase().replace(/\W/g,"")}function f(e,t){let n=p(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function p(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}function h(e,n,r){const i="Invalid"===n.state.kind?n.state.prevState:n.state,o=i.kind,a=i.step;if("Document"===o&&0===a)return l(e,n,[{text:"{"}]);const s=r.variableToType;if(!s)return;const u=m(s,n.state);if("Document"===o||"Variable"===o&&0===a)return l(e,n,Object.keys(s).map(e=>({text:`"${e}": `,type:s[e]})));if(("ObjectValue"===o||"ObjectField"===o&&0===a)&&u.fields)return l(e,n,Object.keys(u.fields).map(e=>u.fields[e]).map(e=>({text:`"${e.name}": `,type:e.type,description:e.description})));if("StringValue"===o||"NumberValue"===o||"BooleanValue"===o||"NullValue"===o||"ListValue"===o&&1===a||"ObjectField"===o&&2===a||"Variable"===o&&2===a){const r=u.type?(0,t.getNamedType)(u.type):void 0;if(r instanceof t.GraphQLInputObjectType)return l(e,n,[{text:"{"}]);if(r instanceof t.GraphQLEnumType)return l(e,n,r.getValues().map(e=>({text:`"${e.name}"`,type:r,description:e.description})));if(r===t.GraphQLBoolean)return l(e,n,[{text:"true",type:t.GraphQLBoolean,description:"Not false."},{text:"false",type:t.GraphQLBoolean,description:"Not true."}])}}function m(e,r){const i={type:null,fields:null};return(0,n.f)(r,n=>{if("Variable"===n.kind)i.type=e[n.name];else if("ListValue"===n.kind){const e=i.type?(0,t.getNullableType)(i.type):void 0;i.type=e instanceof t.GraphQLList?e.ofType:null}else if("ObjectValue"===n.kind){const e=i.type?(0,t.getNamedType)(i.type):void 0;i.fields=e instanceof t.GraphQLInputObjectType?e.getFields():null}else if("ObjectField"===n.kind){const e=n.name&&i.fields?i.fields[n.name]:null;i.type=null==e?void 0:e.type}}),i}s(l,"hintList"),s(u,"filterAndSortList"),s(c,"filterNonEmpty"),s(d,"normalizeText"),s(f,"getProximity"),s(p,"lexicalDistance"),e.C.registerHelper("hint","graphql-variables",(t,n)=>{const r=t.getCursor(),i=t.getTokenAt(r),o=h(r,i,n);return(null==o?void 0:o.list)&&o.list.length>0&&(o.from=e.C.Pos(o.from.line,o.from.ch),o.to=e.C.Pos(o.to.line,o.to.ch),e.C.signal(t,"hasCompletion",t,o,i)),o}),s(h,"getVariablesHint"),s(m,"getTypeInfo")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(0),n(1),n(2),n(3),n(4)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";var o=Object.defineProperty,a=(e,t)=>o(e,"name",{value:t,configurable:!0});function s(e){l=e,u=e.length,c=d=f=-1,x(),S();const t=m();return E("EOF"),t}let l,u,c,d,f,p,h;function m(){const e=c,t=[];if(E("{"),!C("}")){do{t.push(g())}while(C(","));E("}")}return{kind:"Object",start:e,end:f,members:t}}function g(){const e=c,t="String"===h?b():null;E("String"),E(":");const n=y();return{kind:"Member",start:e,end:f,key:t,value:n}}function v(){const e=c,t=[];if(E("["),!C("]")){do{t.push(y())}while(C(","));E("]")}return{kind:"Array",start:e,end:f,values:t}}function y(){switch(h){case"[":return v();case"{":return m();case"String":case"Number":case"Boolean":case"Null":const e=b();return S(),e}E("Value")}function b(){return{kind:h,start:c,end:d,value:JSON.parse(l.slice(c,d))}}function E(e){if(h===e)return void S();let t;if("EOF"===h)t="[end of file]";else if(d-c>1)t="`"+l.slice(c,d)+"`";else{const e=l.slice(c).match(/^.+?\b/);t="`"+(e?e[0]:l[c])+"`"}throw w(`Expected ${e} but found ${t}.`)}a(s,"jsonParse"),a(m,"parseObj"),a(g,"parseMember"),a(v,"parseArr"),a(y,"parseVal"),a(b,"curToken"),a(E,"expect");class T extends Error{constructor(e,t){super(e),this.position=t}}function w(e){return new T(e,{start:c,end:d})}function C(e){if(h===e)return S(),!0}function x(){return d<u&&(d++,p=d===u?0:l.charCodeAt(d)),p}function S(){for(f=d;9===p||10===p||13===p||32===p;)x();if(0!==p){switch(c=d,p){case 34:return h="String",N();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return h="Number",_();case 102:if("false"!==l.slice(c,c+5))break;return d+=4,x(),void(h="Boolean");case 110:if("null"!==l.slice(c,c+4))break;return d+=3,x(),void(h="Null");case 116:if("true"!==l.slice(c,c+4))break;return d+=3,x(),void(h="Boolean")}h=l[c],x()}else h="EOF"}function N(){for(x();34!==p&&p>31;)if(92===p)switch(p=x(),p){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:x();break;case 117:x(),k(),k(),k(),k();break;default:throw w("Bad character escape sequence.")}else{if(d===u)throw w("Unterminated string.");x()}if(34!==p)throw w("Unterminated string.");x()}function k(){if(p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102)return x();throw w("Expected hexadecimal digit.")}function _(){45===p&&x(),48===p?x():O(),46===p&&(x(),O()),69!==p&&101!==p||(p=x(),43!==p&&45!==p||x(),O())}function O(){if(p<48||p>57)throw w("Expected decimal digit.");do{x()}while(p>=48&&p<=57)}function I(e,t,n){const r=[];return n.members.forEach(n=>{var i;if(n){const o=null===(i=n.key)||void 0===i?void 0:i.value,a=t[o];a?L(a,n.value).forEach(t=>{let[n,i]=t;r.push(A(e,n,i))}):r.push(A(e,n.key,`Variable "$${o}" does not appear in any GraphQL query.`))}}),r}function L(e,n){if(!e||!n)return[];if(e instanceof t.GraphQLNonNull)return"Null"===n.kind?[[n,`Type "${e}" is non-nullable and cannot be null.`]]:L(e.ofType,n);if("Null"===n.kind)return[];if(e instanceof t.GraphQLList){const t=e.ofType;return"Array"===n.kind?M(n.values||[],e=>L(t,e)):L(t,n)}if(e instanceof t.GraphQLInputObjectType){if("Object"!==n.kind)return[[n,`Type "${e}" must be an Object.`]];const r=Object.create(null),i=M(n.members,t=>{var n;const i=null===(n=null==t?void 0:t.key)||void 0===n?void 0:n.value;r[i]=!0;const o=e.getFields()[i];return o?L(o?o.type:void 0,t.value):[[t.key,`Type "${e}" does not have a field "${i}".`]]});return Object.keys(e.getFields()).forEach(o=>{r[o]||e.getFields()[o].type instanceof t.GraphQLNonNull&&i.push([n,`Object of type "${e}" is missing required field "${o}".`])}),i}return"Boolean"===e.name&&"Boolean"!==n.kind||"String"===e.name&&"String"!==n.kind||"ID"===e.name&&"Number"!==n.kind&&"String"!==n.kind||"Float"===e.name&&"Number"!==n.kind||"Int"===e.name&&("Number"!==n.kind||(0|n.value)!==n.value)||(e instanceof t.GraphQLEnumType||e instanceof t.GraphQLScalarType)&&("String"!==n.kind&&"Number"!==n.kind&&"Boolean"!==n.kind&&"Null"!==n.kind||D(e.parseValue(n.value)))?[[n,`Expected value of type "${e}".`]]:[]}function A(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function D(e){return null==e||e!=e}function M(e,t){return Array.prototype.concat.apply([],e.map(t))}a(T,"JSONSyntaxError"),a(w,"syntaxError"),a(C,"skip"),a(x,"ch"),a(S,"lex"),a(N,"readString"),a(k,"readHex"),a(_,"readNumber"),a(O,"readDigits"),e.C.registerHelper("lint","graphql-variables",(e,t,n)=>{if(!e)return[];let r;try{r=s(e)}catch(e){if(e instanceof T)return[A(n,e.position,e.message)];throw e}const i=t.variableToType;return i?I(n,i,r):[]}),a(I,"validateVariables"),a(L,"validateValue"),a(A,"lintError"),a(D,"isNullish"),a(M,"mapCat")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(0),n(1),n(5),n(2),n(3),n(4)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";var a=Object.defineProperty,s=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e,t){var n,r;const i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}e.C.defineMode("graphql-variables",e=>{const t=(0,n.o)({eatWhitespace:e=>e.eatSpace(),lexRules:u,parseRules:c,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:l,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}),s(l,"indent");const u={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},c={Document:[(0,n.p)("{"),(0,n.l)("Variable",(0,n.a)((0,n.p)(","))),(0,n.p)("}")],Variable:[d("variable"),(0,n.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,n.t)("Number","number")],StringValue:[(0,n.t)("String","string")],BooleanValue:[(0,n.t)("Keyword","builtin")],NullValue:[(0,n.t)("Keyword","keyword")],ListValue:[(0,n.p)("["),(0,n.l)("Value",(0,n.a)((0,n.p)(","))),(0,n.p)("]")],ObjectValue:[(0,n.p)("{"),(0,n.l)("ObjectField",(0,n.a)((0,n.p)(","))),(0,n.p)("}")],ObjectField:[d("attribute"),(0,n.p)(":"),"Value"]};function d(e){return{style:e,match:e=>"String"===e.kind,update(e,t){e.name=t.value.slice(1,-1)}}}s(d,"namedKey")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(0),n(1),n(5),n(2),n(3),n(4)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";var a=Object.defineProperty;function s(e,t){var n,r;const i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}e.C.defineMode("graphql-results",e=>{const t=(0,n.o)({eatWhitespace:e=>e.eatSpace(),lexRules:l,parseRules:u,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:s,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}),a(s,"name",{value:"indent",configurable:!0});const l={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},u={Document:[(0,n.p)("{"),(0,n.l)("Entry",(0,n.p)(",")),(0,n.p)("}")],Entry:[(0,n.t)("String","def"),(0,n.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,n.t)("Number","number")],StringValue:[(0,n.t)("String","string")],BooleanValue:[(0,n.t)("Keyword","builtin")],NullValue:[(0,n.t)("Keyword","keyword")],ListValue:[(0,n.p)("["),(0,n.l)("Value",(0,n.p)(",")),(0,n.p)("]")],ObjectValue:[(0,n.p)("{"),(0,n.l)("ObjectField",(0,n.p)(",")),(0,n.p)("}")],ObjectField:[(0,n.t)("String","property"),(0,n.p)(":"),"Value"]}})?r.apply(t,i):r)||(e.exports=o)}]).default;
//# sourceMappingURL=graphiql.min.js.map